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:
parent
e89c673a33
commit
f1715dca7b
|
|
@ -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")
|
||||
Loading…
Reference in New Issue