Repository navigation
feat(sites): run Nextflow on a Slurm cluster - #590
vjaganat90 wants to merge 9 commits into
Conversation
a10e028 to
9749cee
Compare
415d02e to
6c07747
Compare
bdf6e28 to
0614002
Compare
0614002 to
443b0b4
Compare
darkclad
left a comment
There was a problem hiding this comment.
Reviewed the three commits above #589 (d33c4004..443b0b4a). The split into sophios.sites is a pure move: line by line, the only new lines are imports, the _nextflow block, _steps_options, _TASK_VARIABLES and the unset, and _place without the runner. _gpu_steps and the Nextflow lowering read the same inherited cwltool:CUDARequirement, so the steps sent to the GPU partition are the tasks that carry accelerator. tests/core/test_sites.py passes in WSL Ubuntu 24.04 with Nextflow 26.04.2 (75 passed, the Slurm x Nextflow walk included). The task headers show -p gpu ... --gres=gpu:1 for the GPU step, -p normal for the other, and -t 48:00:00 from 172800s. One non-blocking comment, inline.
| #: of `error`, which it leaves to `-o`, sending both streams to one file. The leader's login shell sets them again | ||
| #: from your profile, so its job unsets them before Nextflow starts. Toil gives each option it sets on `sbatch`'s | ||
| #: command line, which beats them. | ||
| _TASK_VARIABLES: Final = tuple(name for option in ('job-name', 'output', 'error', 'no-requeue', 'signal', |
There was a problem hiding this comment.
Nextflow writes --mem (and -c) only for a task that declares them. In the Slurm x Nextflow walk, the copy step's .command.run has -J, -o, --no-requeue, --signal, -t, -p and clusterOptions, but no --mem and no -c. Because this line unsets SBATCH_MEM_PER_NODE/_CPU/_GPU for every task, a tool with no ramMin runs with the cluster's DefMemPerCPU. Under Toil the same step gets --defaultMemory 4Gi and a wic065 note. A user who sets SBATCH_MEM_PER_CPU in their profile to work around a low default also loses it for Nextflow tasks, and docs/sites.md lists "memory" among the options Nextflow always writes.
The unset is still needed for tasks that do declare memory, since the variable would beat their --mem line. So this could be handled by giving Nextflow a default when the tool declares none, as Toil gets 4 GiB, or by extending the wic065 note to Nextflow on Slurm and correcting the docs sentence. Not blocking.
f4dabee to
dc7b3c1
Compare
S2 builds Machine and Run, and records in sites-design.md §17 what it found: macOS has no setsid, so the leader takes a process group of its own with `set -m`; the traps follow the claim at once; Toil's scratch folders are made before Toil starts, which refuses a --workDir that does not exist; the guard prints the hash before the script, so a login profile's output is never read as the script's; the runner versions a site takes; Toil's single_machine refuses a step that asks for more memory than the machine has, so check() notes each Toil step that declares no memory on a machine too, wic066; a run unclaimed ten minutes after its submit is claimed `none` on a machine too; the codes S2 adds and reuses; a Machine is refused when it is made on Windows itself; and the known limit of a StepInput default's path. Decision 18's exception to the Nextflow design's non-goal lands here, with the first PR that runs a pipeline on a site and sets one of its settings: executor.queueSize, in a block the site appends to the run's copy of the generated nextflow.config (decision 25). Decision 27 (2026-11-24, the owner's) replaces 26: check() and submit() take the runner as a value, as Workflow.run does, and a site takes from it only the flags of one table, Toil's --maxJobs and --clean and Nextflow's -qs; max_parallel= and clean= are gone.
dc7b3c1 to
56043ca
Compare
sophios.sites.Machine(host, root=, bin=) runs a workflow on a computer you can ssh to, macOS or Linux, as yourself. check() compiles and lowers here as run() does, by the one function both call, with relative paths read against root, and judges in one call there each input the backend's needs names, the runner in bin and its version, the container engine, and the folders it writes; it writes nothing. A site runs each target with one runner, toil-cwl-runner for cwl and nextflow for nextflow, so target= names it, and runner= takes it as a value, as Workflow.run does, for the flags a site takes from it: Toil's --maxJobs and --clean, Nextflow's -qs. One function reads the value: another runner, a setting of the value's own or any other flag is a ValueError, since a site sets every other flag itself and its engine is its container_engine=. The run's runner is built with the site's container engine, which the site reads back from it. Under Toil it notes each step whose tool declares no memory, which Toil gives 4 GiB there and refuses to start on a machine with less. submit() copies the run's files into <root>/sophios/runs/<id> and starts job.sh, which claims the run with its pid, runs the backend's launch from bin with a machine's flags (Toil's single_machine), and records how it ended. Nextflow takes no flags of the site's: how many tasks run at once is executor.queueSize, in a block the site appends to the run's copy of nextflow.config, the one configuration the backend has Nextflow read. Run follows the run as RunHandle does, with id and a repr that attaches; its end is the backend's own outcome over what the run left. Every call is the user's ssh with the script on its input, run only when its sha256 matches. On Windows itself a Machine is refused when it is made. The new codes are wic062 to wic066, of kind machine, wic066 a note; wic015, wic016, wic021 and api008 cover what they already mean. tests/core/test_sites.py runs in the package job (about 60 s), with a local bash for ssh and the real Toil; its Nextflow row runs in Lint And Test's Nextflow Runtime step, which now names the file (about 15 s), and reads the capacity Nextflow's log gives its executor. The walk gives each runner as a value, and reads what it asks in the job, in that capacity and in the run's record. The site codes' provocations go through the same local bash; the Windows leg checks that a Machine is refused there.
docs/sites.md opens with the sites design's first message, then says how to make a Machine and reach it, which runner runs each target and how (a Toil step that declares no memory gets 4 GiB there), what check and submit do, how a run is followed and where its folder is, what cleanup leaves, and what each code means. It sits under Run and manage, and the pages that list the kinds of code, api008 and the run path name a site.
S3 builds Slurm with the CWL runners, and sites-design.md §18 records what it found. The reason status() writes decides first, since it stops a run Slurm will never start as cancel() does. One squeue lists the user's jobs with their comment and name, so the run's leaders and Toil's step jobs come from one call; squeue and sacct are asked with the folder and read only when it has not decided. A machine's none claim is decided by the same function and reported only once it is written. A job that ended without claiming the run counts as no job after two minutes. A time whose days are 0 is refused: Toil 9.5 reads 0-12 as twelve minutes. The SBATCH_ variables unset are sbatch(1)'s for each option the header writes; SLURM_CLUSTERS is refused with SBATCH_CLUSTERS; no site runs cwltool (decision 22), so the leader asks for neither cores nor memory. A stop is done before it is recorded: on Slurm, cancel() and the stop status() makes scancel first and claim after, and status() writes reason last, so a scancel Slurm refuses writes nothing. An exit above 128 decides alone once Slurm lists its leader no more. The code S3 adds is wic067. Appendix B's table and its squeue line follow.
sophios.sites.Slurm(host, root=, bin=, account=, partition=, gpu_partition=, time=) runs a workflow on a cluster's login node over ssh, as yourself, as one leader job: sbatch --parsable, whose header names the job after the run, gives it the comment sophios:<id> and --dependency=singleton, and whose options' SBATCH_ variables are unset for sbatch. toil-cwl-runner runs cwl there, each step a Slurm job of its own on the run's partition, or the one with GPUs, with the steps' time, the run's comment and account. Nextflow on Slurm is refused, wic067, until S4. check() asks Slurm's commands (sacct must answer), sinfo -a and your SBATCH_ settings, refuses SBATCH_CLUSTERS and SLURM_CLUSTERS, and places the run by its settings, else by Slurm's conventions. When the submit's answer is lost, submit adopts the job named after the run, or submits the same folder again; the claim keeps one leader. status() decides by one function on both sites: the folder first, then squeue and sacct, with the ten-minute and two-minute windows; a failed squeue or sacct decides nothing, and an exit above 128 decides alone once Slurm lists its leader no more. A run one of whose jobs Slurm will never start is stopped, its reason naming the setting to change, and the step jobs a killed leader left are cancelled by the run's comment. cancel() scancels the jobs named after the run, then claims it. A scancel Slurm refuses ends the call, which raises wic062 having written nothing: status() writes reason only once the stop is done. tests/core/fake_slurm.py is a Slurm of Sophios's own (sbatch, squeue, sacct, scancel, sinfo), enough for Sophios and for Toil's --batchSystem slurm. tests/core/test_sites.py takes S2's tests to Slurm: the states over every life on both sites, a leader Slurm lists no more among them; Toil's argv on Slurm through Toil's own parser and parse_slurm_time; where a run goes; and, end to end with the real Toil, the runner table's Slurm column, the ends, a stop and a hard kill's cancel that Slurm refuses, adoption, singleton and the claim, and a hard kill's step jobs. The package job runs the file in about 170 s, its status polled every half second (S2's took about 60 s); the Nextflow Runtime step still runs its machine row of Nextflow.
docs/sites.md adds a cluster: Slurm's settings and where each comes from when it is not given, the Slurm column of the runner table, what check() asks Slurm and refuses, how submit adopts a job whose answer was lost and keeps one leader, how a run's state is read from Slurm, a job Slurm will never start, a leader killed hard and the step jobs it left, and wic067. The checks page, the run path and the architecture page name Slurm.
S4 runs Nextflow on Slurm, and sites-design.md §19 records what it found. What a site sets for Nextflow is a block it appends to the run's copy of the generated nextflow.config (decision 25), which the exception S2 wrote already names. Nextflow reads no Slurm time, so the block gives the steps' time in seconds, and no time when the steps have no limit. Nextflow's Slurm executor reads no accelerator, so for a workflow with GPU steps the block's queue and clusterOptions are closures on task.accelerator: a GPU task goes to the partition with GPUs, asking for them with --gres, as Toil's step does, and where a step goes no longer depends on its runner. The pinned Nextflow verifies the block by a run against the fake Slurm. Nextflow writes each task's options as #SBATCH lines, which the SBATCH_ variables a login profile sets again in every job would beat, so Nextflow's job on Slurm first unsets the variables of every option Nextflow writes, --gres's among them, and SBATCH_ERROR, since Nextflow sends a task's two streams to one file, as submit does for the leader's header. §11's wic067, the tests and Appendix A follow.
A Slurm site runs target='nextflow': each task a Slurm job of its own. One function, _nextflow, writes the block a site appends to the run's copy of nextflow.config: executor.queueSize with the tasks at once and, on Slurm, the slurm executor, the run's partition, the steps' time in seconds, none when they have no limit, and clusterOptions with the run's comment and account, the text Toil's --slurmArgs= gets from the same helper. For a workflow with GPU steps, queue and clusterOptions are closures on task.accelerator, so a GPU task goes to the partition with GPUs with --gres=gpu:<count>; the GPU partition is found as for Toil, so where a step goes no longer depends on its runner. The Nextflow backend learns nothing of sites. Before Nextflow starts, its job on Slurm unsets the SBATCH_ variables of every option Nextflow writes in a task's header (-J, -o, --no-requeue, --signal, -c, -t, --mem, -p, the comment, account and --gres), and SBATCH_ERROR, since -o alone sends both streams to one file: the login profile sets them again in every job, and they beat those lines. One table maps each option to its variables, the leader's and the tasks' alike; it gains the variables of -c, --mem, --signal and --gres. S3's refusal of Nextflow on Slurm goes. check() refuses each Nextflow process with a container on a site whose engine is not Docker, Slurm's singularity among them (wic065). sophios.sites becomes a package of five modules, each under the 750-line limit: _ssh (the transport and the scripts' shell functions), _states (a run's states), _runners (the runner-by-scheduler table and the leader script's parts), _site (Machine and Slurm) and _run (Run). It still exports Machine, Slurm and Run. tests/core/test_sites.py: the walk over targets.TARGETS runs Nextflow on Slurm too, end to end with the pinned Nextflow and the fake Slurm, in Lint And Test's Nextflow Runtime step (about 20 s more), with a second step that asks for a GPU, whose task is a job on the partition with GPUs asking for one. Under a login profile that sets other SBATCH_ values, SBATCH_GRES among them, the leader and each job a runner submits carry the run's comment, account, partition and time, Nextflow's tasks get none of the SBATCH_ variables of their header's options, nor SBATCH_ERROR, while yours, such as SBATCH_QOS, reach them. The property over Toil's argv reads Nextflow's block for the same run against what Toil's own parser read; the package job adds a Slurm row to the check table, and the placement table, no longer by runner, loses its runner column. fake_slurm.py reads sbatch's -t and squeue's -t and -p, records each job's account, partition and GRES, and lets SBATCH_ACCOUNT, _PARTITION and _TIMELIMIT beat a script's name they replace.
docs/sites.md runs Nextflow on a cluster: an example, the Slurm cell of the runner table, a GPU step's task on the partition with GPUs, the containers Slurm's singularity refuses, the comment of Nextflow's task jobs, the SBATCH_ variables the leader unsets for Nextflow's task headers, and wic065 on any site; gpu_partition= applies under Nextflow too. docs/nextflow.md says what a site sets in the run's nextflow.config, and that a site on Slurm asks for a GPU task's GPUs itself, since Nextflow's Slurm executor reads no accelerator. The architecture page names Nextflow's task jobs.
56043ca to
697a7d6
Compare
Stacked on #589 ("feat/sites-slurm"). Merge that first; this PR's own changes are the commits above it.
What
The last of four PRs for Sites (
design_docs/sites-design.md):target='nextflow'onsophios.sites.Slurm, each task a Slurm job of its own, GPU tasks included. Every runner of the target table now runs on both sites, or is refused there with its code. It also makessophios.sitesa package.What a site sets for Nextflow is a block it appends to the run's copy of
nextflow.config(decision 25), from one function,_nextflow. The backend has Nextflow read that one file (-C), so the block is the one place a site sets anything of Nextflow's;backends.pyis unchanged, and the Nextflow backend knows nothing about sites. On aMachinethe block isexecutor { queueSize = <max_parallel> }(S2). On Slurm it adds:process { executor = 'slurm' queue = '<partition>' time = '<steps' time in seconds>s' clusterOptions = '--comment=sophios:<id> --account=<account>' }timeis left out when the steps have no limit; theclusterOptionstext comes from the same helper as Toil's--slurmArgs=. Why a configuration and not flags, measured with Nextflow 26.04.2 and again with 26.10.5, which feat: one table of targets, and nf-s codes for Nextflow refusals #586 now pins: a-process.*flag gives every task the same value (a closure passed as-process.queuereaches the task as its text, and awithName:selector on the command line is ignored), and the backend's-Csilently ignores a second file given torun -c.GPU steps. Nextflow's Slurm executor ignores
accelerator(measured with 26.04.2 and 26.10.5: no--gres). So for a workflow with GPU steps,queueandclusterOptionsare closures ontask.accelerator: a task with one goes to the GPU partition with--gres=gpu:<count>, every other to the run's partition. The GPU partition is found as for Toil (gpu_partition=, else the one partition with GPUs), so where a step goes no longer depends on its runner, and_placeno longer takes the runner. Every task keeps the one steps' time (decision 24). The Nextflow target gives Docker no--gpus; that is the target's own follow-up, here and locally alike.The steps' time is given in seconds. Nextflow refuses
2-00:00:00and30:00("Not a valid time value", measured with 26.04.2 and 26.10.5), and turns172800sinto#SBATCH -t 48:00:00.Your
SBATCH_variables, and Nextflow's task headers. Nextflow writes each task's options as#SBATCHlines:-J,-o,--no-requeue,--signal,-c,-t,--mem,-p, andclusterOptions' comment, account and a GPU task's--gres(measured against the fake Slurm, with 26.04.2 and 26.10.5).SBATCH_variables beat those lines (sbatch(1)), and the leader'sbash -lsets them again from the profile.SBATCH_GRESamong them, andSBATCH_ERROR: Nextflow writes-oalone, so a task's stdout and stderr go to one log.submitalready follows for the leader's header. One table maps each option to its variables for both, and it gains those of-c,--mem,--signaland--gres.SBATCH_QOS, still reach every task. Toil is not affected: it passes every option it sets onsbatch's command line, which beats the variables.checkon Slurm refuses each process that has a container, by name, when the site'scontainer_engineis notdocker(wic065; Slurm's default issingularity).sophios.sitesis a package of five modules, each under the 750-line limit (owner, 2026-11-10):_ssh(the transport and the scripts' shell functions),_states(a run's states, Appendix B),_runners(the runner-by-scheduler table and the leader script's parts),_site(Machine,Slurmand the reading of the workflow) and_run(Run). Each definition moved as it was.sophios.sitesstill exportsMachine,SlurmandRun, and thetoo-many-linesexemption is gone. The tests patch the module that holds each name they replace (_ssh._transport,_site._call,_site.lowered_for_site,_run.POLL).Design:
design_docs/sites-design.md§19 records what S4 found, in thedesign:commit. The exception indesign_docs/sophios_nextflow_backend.md, which S2 wrote, already names what S4 sets, so S4 changes no word of it.What changes for callers
Nothing for a local run or for a
Machine.Slurm(...).submit(workflow, target='nextflow')now runs instead of raisingwic067, GPU steps included. On Slurm,checkrefuses a Nextflow process with a container unlesscontainer_engine='docker'(wic065). Inside the package,sophios.sitesis a package; its public names are unchanged.Deleted
Noneentry inON_SLURM, the branch in_preparethat returned the refusal, and the test's assert that the entry is notNone. The test that walkstargets.TARGETSacross both sites has no refusal branch left._place, and the runner column of its test table.Why
Decision 17, as decisions 26 and 27 leave it: every target of the target table runs on every site. This PR fills the last cell of the Slurm column, GPU steps included (decision 25).
Verified
statuson Linux that CI met on feat(sites): run Nextflow on a Slurm cluster #590 (the status script fell from GNU'sstat -ctostat -f, the file system's on Linux, when the run ended between the two; see feat(sites): run a workflow on a machine of your own over ssh #588). Here the fixed lines are insites/_run.py, and_settingsis imported fromsites/_runners.py. Checked:mypyover all files andpylintonsophios.sitesand its tests are clean at the top of the chain, where 603 tests are collected.tests/core/test_sites.pywith Nextflow 26.10.5 passed at each PR on its own with the fix: 60 cases at feat(sites): run a workflow on a machine of your own over ssh #588, 82 at feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589, 83 at feat(sites): run Nextflow on a Slurm cluster #590. The whole lanes are CI's.checkandsubmittake the runner as a value (decision 27, the owner's; it replaces 26):runner=Toil('--maxJobs', '8', '--clean', 'onSuccess'),runner=Nextflow('-qs', '8'), and nomax_parallel=orclean=. Here_settingsand_FLAGSlive insites/_runners.py, which_site.pyimports them from, and the walk gives Nextflow-qs 3on Slurm as on a machine: the capacity its log gives the Slurm executor is 3. Checked:mypyover all files,lint-imports(8 contracts kept) andpylintonsophios.sitesand its tests are clean at the top of the chain, where 603 tests are collected.tests/core/test_sites.pywith Nextflow 26.10.5 passed at each PR on its own: 60 cases at feat(sites): run a workflow on a machine of your own over ssh #588, 82 at feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589, 83 at feat(sites): run Nextflow on a Slurm cluster #590; after those runs feat(sites): run a workflow on a machine of your own over ssh #588 only moved the walk's runner values to a constant (its two tests run again) and feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589 only reworded a comment. The whole lanes are CI's._or-is attached;run.logis opened to be added to). One conflict, in the commit that makes the package: the import of the name's pattern, and the pattern feat(sites): run a workflow on a machine of your own over ssh #588 deleted. The new test calls_ssh._call. Checked at the top of the chain:mypyover all files,lint-imports(8 contracts kept) andpylintonsophios.sitesand its tests clean; 596 tests collected;tests/core/test_sites.pywith Nextflow 26.10.5: 76 passed. At this PR's own tip, before the fold: its 52 cases without Nextflow passed. The whole lanes are CI's.9c0b56e1, whose tree is the tree of the refactor: a backend describes a run, and the machine acts #587 head this chain sat on (c84b7e61), so each PR's tip has the content it had: a replay with no conflict, and nothing run again.git range-diffshows the 9 commits unchanged.d553d7a8, whose tree is the tree of the feat(compute): run a workflow on the compute service with Nextflow #597 head this chain sat on (81995735), so each PR's tip has the content it had: a replay with no conflict, and nothing run again.git range-diffshows the 11 commits unchanged.4b11628d). feat(compute): run a workflow on the compute service with Nextflow #597 takeswic061, so the sites' codes are one up: this PR's are none of its own (it nameswic065andwic067), in the code, the tests, the pages, the design and the commit messages. The text above says them as they are now; the entries below keep the numbers of their day. The chain's new top is its old top with the codes renumbered, byte for byte, but for three things: wherewic061sits in the code table and in the provocations, now in the order of the numbers, and feat(compute): run a workflow on the compute service with Nextflow #597's test fix. Checked at this PR's tip, before feat(compute): run a workflow on the compute service with Nextflow #597's test fix beneath it:mypy(245 files) clean, every test module imports (595 tests), the census of codes passed, andtest_compute.py,test_backends.py,test_diagnostics.py,test_ci_coverage.pyandtest_entry_points.pywithtest_sites.py: 139 passed. The whole lanes are CI's.4b11628d), seven commits on from252d37a2: master deletes thepython_scriptstep with its codewic014, and says why the warning refactor: a backend describes a run, and the machine acts #587 drops is filtered. No conflict in this PR, andgit range-diffshows each of its commits unchanged. Checked at the chain's top (481a8a04), not by the lanes, which CI runs:mypyas the pre-commit hook runs it, clean; every test module imports (595 tests collected); nothing in the chain names what master deleted.8689def3), which adds the fix that drops schema-salad'spreviously definedwarning wherever CWL is loaded. A replay with no conflict:git range-diffshows each of this PR's commits as the patch it was.252d37a2): the site's flags are set where the run is placed (see feat(sites): run a workflow on a machine of your own over ssh #588 and feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589). Here the change is carried intosites/_site.py, and this PR no longer touches the head of_job: with the refusal gone,_preparecalls the table's entry as it is. No change of behaviour, measured at this PR's tip against the tip before: over 4000 generated runs (each target, the engines,clean,max_parallel, values a site takes and values it refuses), the scripts a site sends, which carry every file of the run, its diagnostics and whatsubmitprints are the same bytes.tests/core/test_sites.pyhere: 75 passed.603c2194). feat(lang): write a tool in .wic #609 moved three times during the day (aef7ab98,681d54c6,603c2194) and the chain's 15 commits were replayed onto each. Three conflicts in all: two in feat(compute): run a workflow on the compute service with Nextflow #597 (the runtime adapter's imports, where feat(lang): write a tool in .wic #609 droppedlang.tool; the Compile row of the layer table indocs/checks-and-errors.md, which is feat(lang): write a tool in .wic #609's withwic067at its end) and one in feat(sites): run a workflow on a machine of your own over ssh #588 (the provocations table, where feat(lang): write a tool in .wic #609 removed theINVALID_NAMEentry the hunk sat beside).git range-diffshows no other change to any commit than the codes. What was run locally, and where: ataef7ab98, the whole chain was gated once at feat(compute): run a workflow on the compute service with Nextflow #597's tip as master's lanes run (mypy251 files,lint-imports8 contracts kept,pre-commit,autopep8,pylint9.95 as feat(lang): write a tool in .wic #609's tip, the chain adding the twotoo-many-linesmessages of feat(compute): run a workflow on the compute service with Nextflow #597;test_entry_points.pywithtest_ci_coverage.py12 passed; the census of codes 4 passed; the package job's selection 465 passed, 8 skipped; the Nextflow Runtime step 32 passed), with six failures, each reproduced on feat(lang): write a tool in .wic #609's head alone: the five known on this Mac (macOSwcpadding, four cases; Python 3.14'sPurePath.as_uri()deprecation, one) and one Hypothesis draw oftest_a_scatter_records_what_cwl_defines_for_its_methodwhose captured text passes the 64 KiBloadContentstakes. At681d54c6and603c2194each commit passed its pre-commit hooks,mypyamong them, and nothing else was run locally: CI is the gate for this head.wic058towic060, so every code of this chain moved up by two:wic061towic065in feat(sites): run a workflow on a machine of your own over ssh #588,wic066in feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589,wic067in feat(compute): run a workflow on the compute service with Nextflow #597, in the code, the docs, the tests, the design and the commit messages. The numbers in the entries below are the ones the codes have now.b7ff2244), which carries fix(plugins): read a tool when a step runs it #608 and the tool documents. The whole chain was gated once at feat(compute): run a workflow on the compute service with Nextflow #597's tip, which contains this PR (CI runs each PR on its own), as master's lanes run:mypy(251 files),lint-imports(8 contracts kept),pre-commit runfrom feat(lang): write a tool in .wic #609's tip to the top (22 hooks),autopep8,pylint src/ examples/**/*.py tests/(9.96, feat(lang): write a tool in .wic #609's tip 9.95; the chain adds two messages to feat(lang): write a tool in .wic #609's, bothtoo-many-linesand both in feat(compute): run a workflow on the compute service with Nextflow #597:_workflow_runtime.pyat 763 lines andcompute.pyat 751) andmake html, whose pages are written, the code table listingwic057towic067and the contents the Sites page, and whose one warning is intersphinx's inventory fetch, which this network's proxy refuses and the docs Makefile now makes an error, on feat(lang): write a tool in .wic #609's tip alike;test_entry_points.pywithtest_ci_coverage.py12 passed; the census of codes (test_lang_parser.pyand its three siblings,-m skip_pypi_ci) 4 passed; the package job's selection (-m "not skip_pypi_ci and not nextflow and not cwl_corpus") 502 passed, 8 skipped; Lint And Test's Nextflow Runtime step with Nextflow 26.10.5 33 passed. Five cases fail on this Mac at this tip and at feat(lang): write a tool in .wic #609's alike:[commands]and[nested]oftest_an_example_runs_under_cwltool_as_statedand oftest_an_example_workflow_runs_under_nextflow_as_stated(macOSwcpads its count), andtest_cookbook.py::test_every_pair_compiles_alike_from_both_surfaces_and_as_stated, which stops on Python 3.14's deprecation ofPurePath.as_uri()in master'slang/cwl.py. The gate ran on feat(lang): write a tool in .wic #609 at0801d5bc; feat(lang): write a tool in .wic #609 was then rebased onto master asb7ff2244with the same tree, and the chain replayed onto it, changing one line of the design.wic058(a tool document Sophios cannot read), so every code of this chain moved up by one again:wic061towic065in feat(sites): run a workflow on a machine of your own over ssh #588,wic066in feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589,wic067in feat(compute): run a workflow on the compute service with Nextflow #597, in the code, the docs, the tests, the design and the commit messages.runner=. Replaced by decision 27 (2026-11-24), above. Since decision 22 a site runs each target with one runner, so the runner follows fromtarget=. Locally feat(run): runner values on run(), and one run for both doors #600 made the runner a value,run(runner=Toil(...)); a site taking that value would take settings that are this machine's and flags that compete with the ones the site sets. Here: the change of feat(sites): run a workflow on a machine of your own over ssh #588 and feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589, carried into the package's_siteand_runners; the walk, overtargets.TARGETS, refuses nothing; and its Nextflow runs assert thatjob.shsets no Singularity cache, on Slurm too, whose default engine is Singularity: the caches are the runner's engine's, and Nextflow's is Docker.05d2533a), which sits on master with feat(run): runner values on run(), and one run for both doors #600's runner values. The whole chain was gated once at feat(compute): run a workflow on the compute service with Nextflow #597's tip, which contains this PR (CI runs each PR on its own), as master's lanes run:mypy(247 files),lint-imports(8 contracts kept),pre-commit runfrom refactor: one statement for each fact, in docs, tests and the Nextflow target #605's tip to the top (22 hooks),autopep8,pylint src/ examples/**/*.py tests/(9.95) andmake html(its code table listswic057towic067, its contents the Sites page);test_entry_points.pywithtest_ci_coverage.py12 passed; the census of codes (test_lang_parser.pyand its three siblings,-m skip_pypi_ci) 4 passed; the package job's selection (-m "not skip_pypi_ci and not nextflow and not cwl_corpus") 440 passed, 8 skipped; Lint And Test's Nextflow Runtime step with Nextflow 26.10.5 33 passed. Five cases fail on this Mac at this tip and at refactor: one statement for each fact, in docs, tests and the Nextflow target #605's alike:[commands]and[nested]oftest_an_example_runs_under_cwltool_as_statedand oftest_an_example_workflow_runs_under_nextflow_as_stated(macOSwcpads its count), andtest_cookbook.py::test_every_pair_compiles_alike_from_both_surfaces_and_as_stated, which stops on Python 3.14's deprecation ofPurePath.as_uri()in master'slang/cwl.py.wic057meanwhile (a tool cwltool refuses), so every code of this chain moved up by one:wic061towic065in feat(sites): run a workflow on a machine of your own over ssh #588,wic066in feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589,wic067in feat(compute): run a workflow on the compute service with Nextflow #597. Each is declared as master now declares a code, with its explanation in the enum;docs/error_codes.mdis built from them._siteand_run; nothing of this PR's own.123ab482, the whole chain was gated once at feat(sites): run Nextflow on a Slurm cluster #590's tip (CI runs each PR on its own), as master's lanes run:mypy(249 files),lint-imports(7 contracts kept),pre-commit run --from-ref 123ab482 --to-ref HEADover every file the chain changes,autopep8andpylint src/ examples/**/*.py tests/as Lint And Test runs them (9.94; the two messages it gave on lines the rebase wrote were then fixed in refactor: a backend describes a run, and the machine acts #587's code commit, a comment and a docstring's wrap, and checked again), andmake htmlwith no warning but intersphinx's two inventory fetches, which this network's proxy refuses;test_entry_points.pywithtest_ci_coverage.py16 passed; the package job (python -m pytest -m "not skip_pypi_ci and not nextflow and not cwl_corpus") 413 passed, 8 skipped; Lint And Test's Nextflow Runtime step with Nextflow 26.10.5 (pytest tests/core/nextflow tests/core/test_sites.py -m "nextflow and not nextflow_corpus") 31 passed, the walk's runs on a machine and on Slurm among them. Each of the two failed the same two cases, which fail on master here too:test_an_example_runs_under_cwltool_as_statedandtest_an_example_workflow_runs_under_nextflow_as_stated,[commands]and[nested], whosewccount macOS pads and GNU's does not (CI runs Ubuntu).--collect-onlyshows the walk'smachine-nextflowandslurm-nextflowcases collected by the Nextflow Runtime step and the weekly Python matrix, and by no lane without Nextflow. The counts below are this PR's own, from before these changes, under Nextflow 26.04.2; those of the nextflow lane were measured there, before feat: one table of targets, and nf-s codes for Nextflow refusals #586 removed it._site.py's import ofrunner_job_inputs, which S2's resolution brought.targets.TARGETSruns the pinned Nextflow end to end against the fake Slurm, with a second step that asks for a GPU, under a login profile that sets conflictingSBATCH_values,SBATCH_GRESamong them. It asserts that the leader and the copy step's task carry the run's comment, account, the run's partitionnormaland their time, with no GRES, and that the GPU step's task is a job ongpuasking forgpu:1; that every task'ssbatchgets none of the variables of its header's options, norSBATCH_ERROR, whileSBATCH_QOSandSBATCH_OPEN_MODEreach it; and, on both sites, thatexecutor.queueSizeis the capacity in Nextflow's own log. Toil runs a GPU step only where cwltool finds a GPU, so Toil's walk has none; Toil's GPU partition is read back by Toil's own parser instead.--gres's variable not cleared for the tasks; no per-task GPU partition (by the walk, and by the property alone); no GPU partition found for Nextflow; no block appended to the run's configuration; and, in S2, noexecutorblock on a machine.-process.*flags and of the GPU refusal went with them.