summaryrefslogtreecommitdiffstats
path: root/src/db/builds
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/builds')
-rw-r--r--src/db/builds/mod.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/db/builds/mod.rs b/src/db/builds/mod.rs
index e31543e..50aee63 100644
--- a/src/db/builds/mod.rs
+++ b/src/db/builds/mod.rs
@@ -119,13 +119,8 @@ pub fn queued(db: &Db, limit: i64) -> Result<Vec<String>> {
})
}
-/// Lease one named build to a worker.
-///
-/// Test-tier only. Production leases a *batch* — `claim_batch` is what the
-/// dispatcher runs — and nothing in the crate calls this single-build form.
-/// It stays because three test files lease one build at a time on purpose,
-/// and a test that wants to reason about one lease should not have to
-/// arrange for the batch form to hand back exactly one.
+/// Lease one named build to a worker. Production leases batches through
+/// `claim_batch`.
#[cfg(feature = "test-support")]
pub fn claim(db: &Db, owner: &str, id: &str, lease_secs: i64) -> Result<bool> {
let (owner, id) = (owner.to_string(), id.to_string());
@@ -267,8 +262,6 @@ pub fn cancel_requested(db: &Db, id: &str) -> Result<bool> {
})
}
-// The step machine is its own concern: same build, one row per step, its own
-// legal moves.
mod steps;
pub use steps::{