Replay verified completed native jobs on exact document undo
This commit is contained in:
1 parent
d8af3518a7
commit
f387b1db61
4 files changed
+250
-30
No files matched your search
@@ -293,6 +293,16 @@ impl RevisionJob {
|
||||
Some(self.finish_execution(executed, files, previous.as_deref()))
|
||||
}
|
||||
|
||||
/// Publish a completed result after the caller verifies the same inputs
|
||||
/// and replays every host call into the current revision's draft.
|
||||
pub fn reuse_completed_after_host_replay(
|
||||
self,
|
||||
completed: &RevisionExecution,
|
||||
files: &impl SourceProvider,
|
||||
) -> Result<Arc<RevisionExecution>, RevisionFailure> {
|
||||
self.finish_execution(Ok(completed.execution.clone()), files, Some(completed))
|
||||
}
|
||||
|
||||
fn finish_execution(
|
||||
self,
|
||||
executed: Result<Execution, ExecutionFailure>,
|
||||
|
||||
Reference in new issue
Block a user