Skip to content

Commit

Permalink
fix: Ensure nextflow_poll_period_minutes is not zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Oct 15, 2024
1 parent 6fe6c2d commit d5f02b6
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ansible/roles/combine/tasks/nextflow-dedup-file-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
when:
- not combined_file.stat.exists

- name: Ensure nextflow_poll_period_minutes is not zero
set_fact:
nextflow_poll_period_minutes: 1
when: nextflow_poll_period_minutes | int == 0

- name: Display nextflow command timeout (Deduplicate)
debug:
msg: nextflow_timeout_minutes={{ nextflow_timeout_minutes }} nextflow_poll_period_minutes={{ nextflow_poll_period_minutes }}
Expand Down
5 changes: 5 additions & 0 deletions ansible/roles/combine/tasks/nextflow-merge-file-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
when:
- not combined_file.stat.exists

- name: Ensure nextflow_poll_period_minutes is not zero
set_fact:
nextflow_poll_period_minutes: 1
when: nextflow_poll_period_minutes | int == 0

- name: Display nextflow command timeout (Merge)
debug:
msg: nextflow_timeout_minutes={{ nextflow_timeout_minutes }} nextflow_poll_period_minutes={{ nextflow_poll_period_minutes }}
Expand Down
5 changes: 5 additions & 0 deletions ansible/roles/fragment/tasks/fragmentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
nextflow_poll_period_minutes: "{{ (nextflow_timeout_minutes | int / 100) | int }}"
when: deployment=="production"

- name: Ensure nextflow_poll_period_minutes is not zero
set_fact:
nextflow_poll_period_minutes: 1
when: nextflow_poll_period_minutes | int == 0

- name: Log line to report
blockinfile:
marker: "<!-- {fragmentation-nextflow} ANSIBLE MANAGED BLOCK -->"
Expand Down
5 changes: 5 additions & 0 deletions ansible/roles/inchi/tasks/gen-isomol-inchi-database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
nextflow_poll_period_minutes: "{{ (nextflow_timeout_minutes | int / 100) | int }}"
when: deployment=="production"

- name: Ensure nextflow_poll_period_minutes is not zero
set_fact:
nextflow_poll_period_minutes: 1
when: nextflow_poll_period_minutes | int == 0

# Move the nextflow workflow and config into place (from templates)
# so they move from "<templates>/{{ deployment }}" to "{{ reppath }}/nextflow"...

Expand Down
7 changes: 6 additions & 1 deletion ansible/roles/inchi/tasks/gen-nonisomol-inchi-database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
nextflow_poll_period_minutes: "{{ (nextflow_timeout_minutes | int / 100) | int }}"
when: deployment=="production"

- name: Ensure nextflow_poll_period_minutes is not zero
set_fact:
nextflow_poll_period_minutes: 1
when: nextflow_poll_period_minutes | int == 0

# Move the nextflow workflow and config into place (from templates)
# so they move from "<templates>/{{ deployment }}" to "{{ reppath }}/nextflow"...

Expand Down Expand Up @@ -92,7 +97,7 @@
debug:
var: nextflow_cmd

- name: Display nextflow command timeout (Fragmentation)
- name: Display nextflow command timeout (Generate Non-Isomol Inchi)
debug:
msg: nextflow_timeout_minutes={{ nextflow_timeout_minutes }} nextflow_poll_period_minutes={{ nextflow_poll_period_minutes }}

Expand Down
5 changes: 5 additions & 0 deletions ansible/roles/standardise/tasks/standardise-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
nextflow_poll_period_minutes: "{{ (nextflow_timeout_minutes | int / 100) | int }}"
when: deployment == "production"

- name: Ensure nextflow_poll_period_minutes is not zero
set_fact:
nextflow_poll_period_minutes: 1
when: nextflow_poll_period_minutes | int == 0

- name: Log line to report
blockinfile:
marker: "<!-- {standardise-nextflow} ANSIBLE MANAGED BLOCK -->"
Expand Down

0 comments on commit d5f02b6

Please sign in to comment.