WIP: Toil times - #1958
Open
glennhickey wants to merge 2 commits into
Open
Conversation
cactus-panpatch's main() was missing the standard per-tool boilerplate that every other cactus entry point runs after parsing options: - cactus_override_toil_options(options): sets toil defaults (retryCount, realtime logging, default memory) and exports CACTUS_MAX_MEMORY / CACTUS_DEFAULT_MEMORY. panpatch calls cactus_clamp_memory(), which reads those env vars, so without this it would KeyError. - setupBinaries(options): configures binariesMode/docker so cactus_call works as requested (panpatch runs vg, bgzip, etc. via cactus_call). - set_logging_from_options(options) and enableDumpStack(): consistent logging setup and debug stack dumps. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…t Slurm partition Newer Toil exposes a per-job `walltime` requirement that its Slurm backend uses to pick a partition (and set --time). This gives Cactus's many small "coordination" jobs a short walltime so Slurm routes them to a fast/short partition, while everything else falls back to Toil's --defaultWalltime. Machinery (src/cactus/shared/common.py): - cactus_fast_walltime(): reads CACTUS_FAST_WALLTIME (mirrors cactus_clamp_memory). - add_cactus_toil_options(): adds --fastWalltime (default 1800 = 30 min, very conservative for these jobs; 0 disables). - cactus_override_toil_options() exports CACTUS_FAST_WALLTIME so it reaches workers. - RoundedJob / ChildTreeJob now forward walltime to Toil. Application: - Wired add_cactus_toil_options(parser) into every tool's main(). - Tagged the small coordination jobs' scheduling call sites with walltime=cactus_fast_walltime() (the FAST set plus a hand-picked subset of the ambiguous ones; compute-heavy jobs left on --defaultWalltime). Docs (doc/progressive.md, doc/pangenome.md): recommend --defaultWalltime (+ the new --fastWalltime) instead of --slurmTime, which is now framed as a global override. IMPORTANT: toil-requirement.txt is temporarily pinned to Toil master because per-job walltime is not in a Toil release yet. Revert to a released toil[aws]==<ver> before merging. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
start trying to have cactus assign times to toil jobs, with the hopes of getting small jobs onto faster partitions.
todo: