Skip to content

Commit

Permalink
feat(config): get max number of parallel jobs from env vars (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Feb 22, 2024
1 parent 4a3f359 commit 69cfad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reana_workflow_engine_snakemake/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
DEFAULT_SNAKEMAKE_REPORT_FILENAME = "report.html"
"""Snakemake report default filename."""

SNAKEMAKE_MAX_PARALLEL_JOBS = 300
SNAKEMAKE_MAX_PARALLEL_JOBS = int(os.getenv("SNAKEMAKE_MAX_PARALLEL_JOBS", "300"))

Check warning on line 26 in reana_workflow_engine_snakemake/config.py

View check run for this annotation

Codecov / codecov/patch

reana_workflow_engine_snakemake/config.py#L26

Added line #L26 was not covered by tests
"""Snakemake maximum number of jobs that can run in parallel."""

POLL_JOBS_STATUS_SLEEP_IN_SECONDS = 10
Expand Down

0 comments on commit 69cfad4

Please sign in to comment.