LCR-179: Implement asynchronous Slurm job support#160
Draft
dkn16 wants to merge 1 commit into
Draft
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
lightcone-cli | 04be9de | Commit Preview URL Branch Preview URL |
Jul 16 2026, 09:28 AM |
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.
Summary
Adds v1 asynchronous Slurm execution to
lightcone-cliwhile preserving theexisting synchronous pilot-job model.
Long-running work can now be submitted with:
The submitted batch script re-enters plain
lc runinside the new allocation.Container wrapping, including
podman-hpc, Dask dispatch, Snakemake execution,validation, locking, and manifest generation therefore remain identical to
synchronous execution.
User-facing changes
lc run --asyncresources.time_limiton every recipe in that sub-DAG.sharedorregulardeterministically..lightcone/jobs/<timestamp>-<target>.sbatch.lc runinside the batch allocation.sbatch --parsable..lightcone/jobs/<job-id>.json.--universeis omitted.Configuration
The first async submission requires a Slurm account:
The account can also be overridden per submission:
lc statussqueuefor active jobs andsacctfor completed or failedjobs.
lc status --json.lc cancelAdds:
The command resolves one active recorded job, calls
scancel, and updates itslocal record.
Synchronous resource preflight
Plain
lc runnow checks whether every selected recipe fits a worker in thecurrent Slurm allocation.
An impossible CPU, memory, or GPU request fails immediately with a hint to
request a larger interactive allocation or use
lc run --async, instead ofleaving Dask waiting indefinitely for an eligible worker.
Resource plumbing
Adds one canonical ASTRA resource parser shared by sync and async execution:
cpusthreads,cpus_per_taskmemorymem_mbgpusgpus_per_tasktime_limitruntimeThis fixes the previous gap where
recipe.resourcesexisted in ASTRA but wasnot emitted into generated Snakemake rules.
Perlmutter policy
Site policy lives in
engine/site_registry.py.and host-memory allocation.
regular.Execution invariant
The asynchronous layer only allocates and tracks work:
It does not introduce a second recipe execution implementation.
Documentation
Updates:
run,status, andcancel.Test plan
pytest -q -m "not slow"— 369 passed, 1 deselected.ruff check src testsmypy srcrendering, submission records, polling, cancellation, login-node guidance,
compute-node detection, and multi-universe submission.
network binding.
sharedCPU job.sharedGPU job.V1 limitations
checkpointing, or daemon.
snapshotting is not included in this PR.
Implementation
feat/async-jobs04be9de—Implement asynchronous Slurm job support