feat(workflow): resume a parked run from a chosen step
Each finished stage records the run's step results; a retry may name a resume point, and the next attempt skips the steps before it with their results loaded. A run with a repository resumes only on its pushed branch. The canvas offers Resume/Re-run from here on parked runs.
This commit is contained in:
37 files changed
+606
-88
No files matched your search
@@ -188,6 +188,8 @@ type taskActionRequest struct {
|
||||
Findings []string `json:"findings"`
|
||||
// RetryMode is the worktree mode for a retry; empty means refresh_onto_base.
|
||||
RetryMode string `json:"retry_mode"`
|
||||
// ResumeFrom is the step a retry starts at; empty runs every step.
|
||||
ResumeFrom string `json:"resume_from"`
|
||||
}
|
||||
|
||||
func (s *Server) handleTaskAction(w http.ResponseWriter, r *http.Request) {
|
||||
@@ -251,7 +253,7 @@ func decodeTaskAction(w http.ResponseWriter, r *http.Request) (taskstate.Action,
|
||||
http.Error(w, "a re-review needs instructions", http.StatusBadRequest)
|
||||
return "", taskactions.ActionPayload{}, false
|
||||
}
|
||||
return action, taskactions.ActionPayload{Instructions: req.Instructions, Findings: req.Findings, RetryMode: taskstate.RetryMode(req.RetryMode)}, true
|
||||
return action, taskactions.ActionPayload{Instructions: req.Instructions, Findings: req.Findings, RetryMode: taskstate.RetryMode(req.RetryMode), ResumeFrom: req.ResumeFrom}, true
|
||||
}
|
||||
|
||||
func taskMutation(action taskstate.Action) bool {
|
||||
|
||||
Reference in new issue
Block a user