Repository navigation
Conversation
…sion 0.11.0 qc (with out), import, subset, subsample, split, convert and merge take `background`: the step runs as a legume-mcp job, and the call answers at once with the job and the paths it will write; job_status, job_wait and job_cancel (from legume-mcp) follow it. A job is recorded in runall.sh and INDEX.tsv when it ends, like any other step. Outputs being written, by a running call or a job, are claimed until the call ends (for a job, while the server runs): an unnamed output takes the next free name and a named one is refused, so no two writers share a file. A subset's names file outlives the call for its job; an import's input must exist before its provenance is noted; qc refuses `background` on a dry run. The watch pane opens a job's output once it exists.
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.
What
backgroundon every MCP tool that writes a backend (qcwithout,import,subset,subsample,split,convert,merge). The step runs as a legume-mcp 0.3 job and the call returns{job, written, note}at once. Merge also returnsbatchesand qc returnsreport. legume-mcp'sjob_status/job_wait/job_cancelfollow the job, which is recorded inrunall.shandINDEX.tsvwhen it ends.importchecks its input exists before noting provenance;qcrefusesbackgroundon a dry run.data-beans mcp watch:oopens a job's output once it exists.0.3(it skips 0.2). Version 0.10.1:backgroundis an MCP tool argument, not a CLI flag, subcommand or library API, so a patch.Checks
tests/mcp_server.rs,a_write_in_the_background_returns_a_job_that_writes_it, covers:runall.sh;It fails with the names-file fix reverted, and with the claim's check removed.
cargo test --features sim,cargo fmt, andcargo clippy --all-targets --features sim: all clean.