diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-22 09:07:14 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-22 09:07:14 +0000 |
| commit | 4f7c1adc527defc54a6ea1aee77e205067a49120 (patch) | |
| tree | 16a9d76ba043b2610f74f21d9d0535f7e8971a57 /scripts/plot-gemma.py | |
| parent | 5d8794d06ef30afcd5eb832c55e64c0e2f6508ef (diff) | |
| download | genenetwork4-4f7c1adc527defc54a6ea1aee77e205067a49120.tar.gz | |
compute: an async form, so a run that outlasts the client still returns a result
A cold LOCO scan of a large panel is ~21 minutes of wall clock (measured from
Slurm's own records: 20 GWA jobs, all started 17:40:01, 18-21 min each, last
ended 18:01:27). A client cutoff at 300 s could never have returned one, and
the connection closing took the answer with it -- the work already survived, as
a tokio task under the compute gate, but nothing kept its result.
POST /compute/gemma/async?id=<name> -> 202 at once (0.0 s measured) with
{id, state: running, status: url}
GET /compute/gemma/result/<id> -> progress while running, the finished
reply afterwards, the error if it failed
The blocking endpoints are unchanged, so nothing that fits a client's patience
switches to polling. Progress is what can be measured from outside the run: the
process's clock, plus the cluster's job counts for this request's window (the
same query meta.timing uses). The reply bodies are envelopes, like every other
success response -- the openapi check in the build's check phase is what caught
the first draft returning bare JSON, which is the contract doing its job.
Measured on HSNIH-Palmer_true trait 10404 (warm): POST 202 in 0.0 s, polls
showing state=running with growing elapsed_ms, then the finished envelope:
133,217 rows, engine pangemma, phases artifacts built 8,717 ms (a rebuild
because the stale half-pair had been removed), workflow 7,894 ms, parse 146 ms,
steps 20 cached, took_ms 45,932.
Diffstat (limited to 'scripts/plot-gemma.py')
0 files changed, 0 insertions, 0 deletions
