git.delta.rocks / unique-network / refs/commits / 787ea853c0ce

difftreelog

Change Job Timeout. Add timeout before docker log collection and restart.

Alexander Aksenov2022-10-07parent: #46e9b30.patch.diff
in: master

1 file changed

modified.github/workflows/node-only-update_v2.ymldiffbeforeafterboth
4949
5050
5151
52 timeout-minutes: 138052 timeout-minutes: 2880
5353
54 name: ${{ matrix.network }}54 name: ${{ matrix.network }}
5555
186186
187 - name: Send SIGUSR1 to polkadot-launch process187 - name: Send SIGUSR1 to polkadot-launch process
188 if: success() || failure()188 if: success() || failure()
189 run: |189 run: |
190 ContainerID=$(docker ps -aqf "name=node-parachain")190 ContainerID=$(docker ps -aqf "name=node-parachain")
191 PID=$(docker exec node-parachain pidof 'polkadot-launch')191 PID=$(docker exec node-parachain pidof 'polkadot-launch')
192 echo "Polkadot-launch PID: $PID"192 sleep 30s
193 echo -e "Show logs of node-parachain container.\n"
194 docker logs ${ContainerID}
195 echo -e "\n"
196 echo -e "Restart polkadot-launch process: $PID\n"
193 docker exec node-parachain kill -SIGUSR1 ${PID}197 docker exec node-parachain kill -SIGUSR1 ${PID}
194 echo "SIGUSR1 sent to Polkadot-launch PID: $PID"198 echo -e "SIGUSR1 sent to Polkadot-launch PID: $PID\n"
195 docker logs ${ContainerID}199 echo -e "Get node-parachain logs:\n"
196 200 docker logs -t -n 5 ${ContainerID}
201
197 - name: Get chain logs202 - name: Get chain logs
198 if: failure() # run this step only at failure203 if: failure() # run this step only at failure