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
@@ -35,6 +35,7 @@ type actionRequest struct {
|
||||
Instructions string `json:"instructions,omitempty"`
|
||||
Findings []string `json:"findings,omitempty"`
|
||||
RetryMode taskstate.RetryMode `json:"retry_mode,omitempty"`
|
||||
ResumeFrom string `json:"resume_from,omitempty"`
|
||||
}
|
||||
|
||||
type actorPayload struct {
|
||||
@@ -120,6 +121,7 @@ func Register(nc *nats.Conn, service taskactions.Service, log *slog.Logger) (fun
|
||||
Instructions: req.Instructions,
|
||||
Findings: req.Findings,
|
||||
RetryMode: req.RetryMode,
|
||||
ResumeFrom: req.ResumeFrom,
|
||||
})
|
||||
natsrpc.Respond(msg, log, "taskactions", actionResponse{
|
||||
Envelope: natsrpc.NewEnvelope(err),
|
||||
@@ -153,6 +155,7 @@ func (c Client) ApplyChatTaskAction(ctx context.Context, scope *string, actor ta
|
||||
Instructions: res.Instructions,
|
||||
Findings: res.Findings,
|
||||
RetryMode: res.RetryMode,
|
||||
ResumeFrom: res.ResumeFrom,
|
||||
Actor: &actorPayload{
|
||||
ID: string(actor.Identity),
|
||||
Kind: string(actor.Kind),
|
||||
|
||||
Reference in new issue
Block a user