v0.3.7-pre.011
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-job-backfill-lib/src/checkpoint.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
/// Opaque caller-owned checkpoint for one controlled Backfill resumption.
|
||||
///
|
||||
@@ -43,6 +43,12 @@ impl crate::BackfillCheckpoint {
|
||||
return Self { job_id, scope_fingerprint, completed_prefix, resume_before };
|
||||
}
|
||||
|
||||
/// Reissues this opaque frontier for a new caller-owned Job identity without changing scope or progress.
|
||||
pub(crate) fn reissue_for_job(mut self, job_id: ksp_job_api::JobId) -> Self {
|
||||
self.job_id = job_id;
|
||||
return self;
|
||||
}
|
||||
|
||||
/// Returns the internal exclusive `before` cursor used only by controlled Before resumption.
|
||||
pub(crate) const fn resume_before(&self) -> std::option::Option<&crate::BackfillSignature> {
|
||||
return self.resume_before.as_ref();
|
||||
|
||||
Reference in New Issue
Block a user