Implement minimal resume_run for freshrss runs

This commit is contained in:
root
2026-04-07 15:19:44 +08:00
parent d91cdbc6c9
commit c622bc6247
5 changed files with 819 additions and 2 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ class RunStore:
if self.state.status == "running":
resume_from_stage = self.state.current_stage
elif self.state.status == "failed":
failed_stage = next((stage.name for stage in self.state.stages if stage.status == "failed"), None)
failed_stage = next((stage.name for stage in reversed(self.state.stages) if stage.status == "failed"), None)
resume_from_stage = failed_stage or self.state.current_stage
self.state.recovery = RecoveryState(