From eac1030f500526f8843ce534092790f57e37757d Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Fri, 12 Jul 2024 10:54:04 -0700 Subject: [PATCH] Add retries to trigger rules 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 https://github.com/nextstrain/ncov-ingest/issues/462 --- workflow/snakemake_rules/trigger.smk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workflow/snakemake_rules/trigger.smk b/workflow/snakemake_rules/trigger.smk index e4b7ce99..8bda9011 100644 --- a/workflow/snakemake_rules/trigger.smk +++ b/workflow/snakemake_rules/trigger.smk @@ -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 \ @@ -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}