ocriado91 / python-telegrambot-flashcards

MIT License
0 stars 0 forks source link

Add timeout to current status pipeline to avoid exceeds pipeline connection timeout #58

Open ocriado91 opened 1 week ago

ocriado91 commented 1 week ago

Description

The current status pipeline is executed into the raspberry pi server:

image

https://github.com/ocriado91/python-telegrambot-flashcards/blob/main/.github/workflows/current_status.yaml

In case the raspberry pi server where the FlashcardBot is deployed is down, GitHub Actions try to execute this pipeline into the server reaching the following error:

image

Solution

ocriado91 commented 1 week ago

According to: https://github.com/orgs/community/discussions/50926, Github doesn't allow configuring custom timeout to avoid stuck queued pipelines, but we can check if there are any queued workflows after a specific timeout (e.g. 10min) and cancel using GitHub CLI.