Skip to content

Commit

Permalink
Add retries to trigger rules
Browse files Browse the repository at this point in the history
Add retires to trigger rules so that the workflow can automatically
retry them if it encounters transient network errors.

Picked 5 retries to match what is set for the various fetch rules.

Resolves #462
  • Loading branch information
joverlee521 committed Jul 12, 2024
1 parent 4f08afe commit eac1030
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workflow/snakemake_rules/trigger.smk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ rule trigger_rebuild_pipeline:
f"benchmarks/trigger_rebuild_pipeline_{database}.txt"
params:
dispatch_type = f"{database}/rebuild"
retries: 5
shell:
"""
./vendored/trigger-on-new-data \
Expand All @@ -41,6 +42,7 @@ rule trigger_counts_pipeline:
f"benchmarks/trigger_counts_pipeline_{database}.txt"
params:
dispatch_type = f"{database}/clade-counts"
retries: 5
shell:
"""
./vendored/trigger nextstrain/forecasts-ncov {params.dispatch_type}
Expand Down

0 comments on commit eac1030

Please sign in to comment.