feat(taskactions): retry a parked task on the current workflow definition
This commit is contained in:
1 parent
c80d4750a8
commit
9d7287c647
18 files changed
+134
-58
No files matched your search
@@ -2074,9 +2074,12 @@ type ApplyOperatorTaskActionRequest struct {
|
||||
// and chat carries no mode syntax -- an empty value means refresh_onto_base.
|
||||
RetryMode string `protobuf:"bytes,8,opt,name=retry_mode,json=retryMode,proto3" json:"retry_mode,omitempty"`
|
||||
// resume_from is the stage a retry starts at; empty runs every stage.
|
||||
ResumeFrom string `protobuf:"bytes,9,opt,name=resume_from,json=resumeFrom,proto3" json:"resume_from,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
ResumeFrom string `protobuf:"bytes,9,opt,name=resume_from,json=resumeFrom,proto3" json:"resume_from,omitempty"`
|
||||
// current_definition moves a retry onto the workflow's current stored
|
||||
// definition instead of the one the run is pinned to.
|
||||
CurrentDefinition bool `protobuf:"varint,10,opt,name=current_definition,json=currentDefinition,proto3" json:"current_definition,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApplyOperatorTaskActionRequest) Reset() {
|
||||
@@ -2172,6 +2175,13 @@ func (x *ApplyOperatorTaskActionRequest) GetResumeFrom() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApplyOperatorTaskActionRequest) GetCurrentDefinition() bool {
|
||||
if x != nil {
|
||||
return x.CurrentDefinition
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type ApplyOperatorTaskActionResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
|
||||
@@ -3988,7 +3998,7 @@ const file_gateway_v1_chat_proto_rawDesc = "" +
|
||||
"\x17ApplyTaskActionResponse\x12\x17\n" +
|
||||
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x16\n" +
|
||||
"\x06action\x18\x02 \x01(\tR\x06action\x12\x18\n" +
|
||||
"\amessage\x18\x03 \x01(\tR\amessage\"\xae\x02\n" +
|
||||
"\amessage\x18\x03 \x01(\tR\amessage\"\xdd\x02\n" +
|
||||
"\x1eApplyOperatorTaskActionRequest\x12\x17\n" +
|
||||
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x16\n" +
|
||||
"\x06action\x18\x02 \x01(\tR\x06action\x12\x19\n" +
|
||||
@@ -4001,7 +4011,9 @@ const file_gateway_v1_chat_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"retry_mode\x18\b \x01(\tR\tretryMode\x12\x1f\n" +
|
||||
"\vresume_from\x18\t \x01(\tR\n" +
|
||||
"resumeFrom\"l\n" +
|
||||
"resumeFrom\x12-\n" +
|
||||
"\x12current_definition\x18\n" +
|
||||
" \x01(\bR\x11currentDefinition\"l\n" +
|
||||
"\x1fApplyOperatorTaskActionResponse\x12\x17\n" +
|
||||
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x16\n" +
|
||||
"\x06action\x18\x02 \x01(\tR\x06action\x12\x18\n" +
|
||||
|
||||
@@ -5746,10 +5746,13 @@ type RetryTaskRequest struct {
|
||||
RetryMode string `protobuf:"bytes,4,opt,name=retry_mode,json=retryMode,proto3" json:"retry_mode,omitempty"`
|
||||
// resume_from is the stage the attempt starts at, and resume_after the
|
||||
// stage before it whose recorded results it starts with (task.Resume).
|
||||
ResumeFrom string `protobuf:"bytes,5,opt,name=resume_from,json=resumeFrom,proto3" json:"resume_from,omitempty"`
|
||||
ResumeAfter string `protobuf:"bytes,6,opt,name=resume_after,json=resumeAfter,proto3" json:"resume_after,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
ResumeFrom string `protobuf:"bytes,5,opt,name=resume_from,json=resumeFrom,proto3" json:"resume_from,omitempty"`
|
||||
ResumeAfter string `protobuf:"bytes,6,opt,name=resume_after,json=resumeAfter,proto3" json:"resume_after,omitempty"`
|
||||
// current_definition clears the pinned definition so the next dispatch
|
||||
// pins the workflow's current stored version.
|
||||
CurrentDefinition bool `protobuf:"varint,7,opt,name=current_definition,json=currentDefinition,proto3" json:"current_definition,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RetryTaskRequest) Reset() {
|
||||
@@ -5824,6 +5827,13 @@ func (x *RetryTaskRequest) GetResumeAfter() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RetryTaskRequest) GetCurrentDefinition() bool {
|
||||
if x != nil {
|
||||
return x.CurrentDefinition
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type RetryTaskResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@@ -19825,7 +19835,7 @@ const file_state_v1_state_proto_rawDesc = "" +
|
||||
"fromStatus\x12%\n" +
|
||||
"\x05audit\x18\x03 \x01(\v2\x0f.state.v1.EventR\x05audit\"0\n" +
|
||||
"\x13ArchiveTaskResponse\x12\x19\n" +
|
||||
"\bevent_id\x18\x01 \x01(\x03R\aeventId\"\xcb\x01\n" +
|
||||
"\bevent_id\x18\x01 \x01(\x03R\aeventId\"\xfa\x01\n" +
|
||||
"\x10RetryTaskRequest\x12\x17\n" +
|
||||
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x1f\n" +
|
||||
"\vfrom_status\x18\x02 \x01(\tR\n" +
|
||||
@@ -19835,7 +19845,8 @@ const file_state_v1_state_proto_rawDesc = "" +
|
||||
"retry_mode\x18\x04 \x01(\tR\tretryMode\x12\x1f\n" +
|
||||
"\vresume_from\x18\x05 \x01(\tR\n" +
|
||||
"resumeFrom\x12!\n" +
|
||||
"\fresume_after\x18\x06 \x01(\tR\vresumeAfter\"\x13\n" +
|
||||
"\fresume_after\x18\x06 \x01(\tR\vresumeAfter\x12-\n" +
|
||||
"\x12current_definition\x18\a \x01(\bR\x11currentDefinition\"\x13\n" +
|
||||
"\x11RetryTaskResponse\"\x96\x01\n" +
|
||||
"\x18RespondReviewGateRequest\x12\x17\n" +
|
||||
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x1f\n" +
|
||||
|
||||
Reference in new issue
Block a user