mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-03 02:24:33 +00:00
Rehydrate rewound runs before resume
This commit is contained in:
parent
9bf4046a6b
commit
f73b28129c
1 changed files with 6 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ use fabro_util::terminal::Styles;
|
|||
use fabro_workflow::git::MetadataStore;
|
||||
use fabro_workflow::operations::{
|
||||
RewindInput, RewindTarget, RunTimeline, build_timeline_or_rebuild,
|
||||
find_run_id_by_prefix_or_store, rewind,
|
||||
find_run_id_by_prefix_or_store, open_or_hydrate_run, rewind,
|
||||
};
|
||||
use fabro_workflow::records::CheckpointExt;
|
||||
use fabro_workflow::run_lookup::{resolve_run_combined, runs_base};
|
||||
|
|
@ -126,6 +126,11 @@ async fn reset_rewound_run_state(
|
|||
.delete_run(run_id)
|
||||
.await
|
||||
.map_err(|err| anyhow::anyhow!("failed to reset durable store run: {err}"))?;
|
||||
open_or_hydrate_run(durable_store, run_dir)
|
||||
.await
|
||||
.map_err(|err| {
|
||||
anyhow::anyhow!("failed to restore durable store run after rewind: {err}")
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue