mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
## What changed? - [[Nexus-Chasm] Improve nexus operation dynamic config](https://github.com/temporalio/temporal/commit/59a7068417085b199a7d65efa0d02f6b117be6bc) - [[Nexus-Chasm] Improve operation state machine and task handlers](https://github.com/temporalio/temporal/commit/c6f1fa83b285c87dba92fdb7970aa695476cb277) - [[Nexus-Chasm] Refactor workflow registry and nexus workflow integration](https://github.com/temporalio/temporal/commit/45d0cfca84a1e3b0669e6994a27198de7bff4a33) ## Why? - Cleanup - Improved test coverage - Bug fixes
379 lines
13 KiB
Go
379 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/chasm/lib/nexusoperation/proto/v1/tasks.proto
|
|
|
|
package nexusoperationpb
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type ScheduleToStartTimeoutTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ScheduleToStartTimeoutTask) Reset() {
|
|
*x = ScheduleToStartTimeoutTask{}
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ScheduleToStartTimeoutTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ScheduleToStartTimeoutTask) ProtoMessage() {}
|
|
|
|
func (x *ScheduleToStartTimeoutTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ScheduleToStartTimeoutTask.ProtoReflect.Descriptor instead.
|
|
func (*ScheduleToStartTimeoutTask) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type StartToCloseTimeoutTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StartToCloseTimeoutTask) Reset() {
|
|
*x = StartToCloseTimeoutTask{}
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StartToCloseTimeoutTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StartToCloseTimeoutTask) ProtoMessage() {}
|
|
|
|
func (x *StartToCloseTimeoutTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StartToCloseTimeoutTask.ProtoReflect.Descriptor instead.
|
|
func (*StartToCloseTimeoutTask) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type ScheduleToCloseTimeoutTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ScheduleToCloseTimeoutTask) Reset() {
|
|
*x = ScheduleToCloseTimeoutTask{}
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ScheduleToCloseTimeoutTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ScheduleToCloseTimeoutTask) ProtoMessage() {}
|
|
|
|
func (x *ScheduleToCloseTimeoutTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ScheduleToCloseTimeoutTask.ProtoReflect.Descriptor instead.
|
|
func (*ScheduleToCloseTimeoutTask) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type InvocationTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Attempt int32 `protobuf:"varint,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InvocationTask) Reset() {
|
|
*x = InvocationTask{}
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InvocationTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InvocationTask) ProtoMessage() {}
|
|
|
|
func (x *InvocationTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InvocationTask.ProtoReflect.Descriptor instead.
|
|
func (*InvocationTask) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *InvocationTask) GetAttempt() int32 {
|
|
if x != nil {
|
|
return x.Attempt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type InvocationBackoffTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Attempt int32 `protobuf:"varint,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InvocationBackoffTask) Reset() {
|
|
*x = InvocationBackoffTask{}
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InvocationBackoffTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InvocationBackoffTask) ProtoMessage() {}
|
|
|
|
func (x *InvocationBackoffTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InvocationBackoffTask.ProtoReflect.Descriptor instead.
|
|
func (*InvocationBackoffTask) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *InvocationBackoffTask) GetAttempt() int32 {
|
|
if x != nil {
|
|
return x.Attempt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CancellationTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Attempt int32 `protobuf:"varint,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancellationTask) Reset() {
|
|
*x = CancellationTask{}
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancellationTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancellationTask) ProtoMessage() {}
|
|
|
|
func (x *CancellationTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CancellationTask.ProtoReflect.Descriptor instead.
|
|
func (*CancellationTask) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CancellationTask) GetAttempt() int32 {
|
|
if x != nil {
|
|
return x.Attempt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CancellationBackoffTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Attempt int32 `protobuf:"varint,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancellationBackoffTask) Reset() {
|
|
*x = CancellationBackoffTask{}
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancellationBackoffTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancellationBackoffTask) ProtoMessage() {}
|
|
|
|
func (x *CancellationBackoffTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CancellationBackoffTask.ProtoReflect.Descriptor instead.
|
|
func (*CancellationBackoffTask) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *CancellationBackoffTask) GetAttempt() int32 {
|
|
if x != nil {
|
|
return x.Attempt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDesc = "" +
|
|
"\n" +
|
|
"=temporal/server/chasm/lib/nexusoperation/proto/v1/tasks.proto\x121temporal.server.chasm.lib.nexusoperation.proto.v1\"\x1c\n" +
|
|
"\x1aScheduleToStartTimeoutTask\"\x19\n" +
|
|
"\x17StartToCloseTimeoutTask\"\x1c\n" +
|
|
"\x1aScheduleToCloseTimeoutTask\"*\n" +
|
|
"\x0eInvocationTask\x12\x18\n" +
|
|
"\aattempt\x18\x01 \x01(\x05R\aattempt\"1\n" +
|
|
"\x15InvocationBackoffTask\x12\x18\n" +
|
|
"\aattempt\x18\x01 \x01(\x05R\aattempt\",\n" +
|
|
"\x10CancellationTask\x12\x18\n" +
|
|
"\aattempt\x18\x01 \x01(\x05R\aattempt\"3\n" +
|
|
"\x17CancellationBackoffTask\x12\x18\n" +
|
|
"\aattempt\x18\x01 \x01(\x05R\aattemptBVZTgo.temporal.io/server/chasm/lib/nexusoperation/gen/nexusoperationpb;nexusoperationpbb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescOnce sync.Once
|
|
file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDesc), len(file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
var file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_goTypes = []any{
|
|
(*ScheduleToStartTimeoutTask)(nil), // 0: temporal.server.chasm.lib.nexusoperation.proto.v1.ScheduleToStartTimeoutTask
|
|
(*StartToCloseTimeoutTask)(nil), // 1: temporal.server.chasm.lib.nexusoperation.proto.v1.StartToCloseTimeoutTask
|
|
(*ScheduleToCloseTimeoutTask)(nil), // 2: temporal.server.chasm.lib.nexusoperation.proto.v1.ScheduleToCloseTimeoutTask
|
|
(*InvocationTask)(nil), // 3: temporal.server.chasm.lib.nexusoperation.proto.v1.InvocationTask
|
|
(*InvocationBackoffTask)(nil), // 4: temporal.server.chasm.lib.nexusoperation.proto.v1.InvocationBackoffTask
|
|
(*CancellationTask)(nil), // 5: temporal.server.chasm.lib.nexusoperation.proto.v1.CancellationTask
|
|
(*CancellationBackoffTask)(nil), // 6: temporal.server.chasm.lib.nexusoperation.proto.v1.CancellationBackoffTask
|
|
}
|
|
var file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_init() }
|
|
func file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_init() {
|
|
if File_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDesc), len(file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_depIdxs,
|
|
MessageInfos: file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_msgTypes,
|
|
}.Build()
|
|
File_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto = out.File
|
|
file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_goTypes = nil
|
|
file_temporal_server_chasm_lib_nexusoperation_proto_v1_tasks_proto_depIdxs = nil
|
|
}
|