Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-c0re/src/job_queue
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas a3a0b34668 jobq: completion is pub(crate); the DAG container is not a special case
`submit` used to complete the container node by hand, right after
inserting it, so it would park in `Finishing` and its children unblock.
That was the last caller of `Scheduler::complete` outside the crate, and
the justification was that the container "never needs claiming or
executing".

It does, though, in the sense that matters: it is a node with no logic of
its own, and the scheduler already knows what to do with one. It declares
no resources, so it is claimable the moment it is inserted; `run_node`'s
`Dag` arm already returns `Ok(())`, exactly as it does for `DeployWindow`,
which is the same shape and was never special-cased. Deleting the inline
completion costs one claim round-trip and removes the only reason the
crate had to expose completion at all.

`complete` is `pub(crate)` now. Completion is reachable only from inside
the future `claim_next` hands back, so a node cannot be finished without
the claim it answers, and cannot be claimed without the future that
finishes it. That was the point of the seam.
2026-08-02 22:00:34 +02:00
..
exec.rs jobq: Scheduler::new_job is gone 2026-08-02 22:00:34 +02:00
mod.rs jobq: completion is pub(crate); the DAG container is not a special case 2026-08-02 22:00:34 +02:00
model.rs refactor(#2949): kill Declare — a running node declares onto its own builder 2026-08-02 22:00:34 +02:00
resource.rs job_queue: fix the boot sweep's lost declarations, drop the node wrapper 2026-08-02 16:29:06 +02:00
scheduler.rs jobq: complete is the completion, and failure grows nothing 2026-08-02 22:00:34 +02:00
submit.rs job_queue: fix the boot sweep's lost declarations, drop the node wrapper 2026-08-02 16:29:06 +02:00
templates.rs c0re: history retention is a policy, split from the graph it reads 2026-08-02 22:00:34 +02:00
tests.rs c0re's queue tests no longer drive the scheduler 2026-08-02 22:00:34 +02:00