Automatically re-run tasks in case of network issues (#140)

* Automatically re-run tasks in case of network issues

* new line
This commit is contained in:
Fedor Korotkov 2024-04-01 14:06:20 +02:00 committed by GitHub
parent e89c673a33
commit f1715dca7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

7
.cirrus.star Normal file
View File

@ -0,0 +1,7 @@
load("github.com/cirrus-modules/graphql", "rerun_task_if_issue_in_logs")
def on_task_failed(ctx):
if ctx.payload.data.task.automaticReRun:
print("Task is already an automatic re-run! Won't even try to re-run it...")
return
rerun_task_if_issue_in_logs(ctx.payload.data.task.id, "The network connection was lost")