diff --git a/api/adminservice/v1/request_response.pb.go b/api/adminservice/v1/request_response.pb.go index dbbfee515a1..e60c946a9fe 100644 --- a/api/adminservice/v1/request_response.pb.go +++ b/api/adminservice/v1/request_response.pb.go @@ -580,6 +580,133 @@ func (m *GetShardResponse) GetShardInfo() *v11.ShardInfo { return nil } +type ListHistoryTasksRequest struct { + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` + Category v13.TaskCategory `protobuf:"varint,2,opt,name=category,proto3,enum=temporal.server.api.enums.v1.TaskCategory" json:"category,omitempty"` + TaskRange *v14.TaskRange `protobuf:"bytes,3,opt,name=task_range,json=taskRange,proto3" json:"task_range,omitempty"` + BatchSize int32 `protobuf:"varint,4,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` + NextPageToken []byte `protobuf:"bytes,5,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (m *ListHistoryTasksRequest) Reset() { *m = ListHistoryTasksRequest{} } +func (*ListHistoryTasksRequest) ProtoMessage() {} +func (*ListHistoryTasksRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc07c1a2abe7cb51, []int{10} +} +func (m *ListHistoryTasksRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListHistoryTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListHistoryTasksRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListHistoryTasksRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListHistoryTasksRequest.Merge(m, src) +} +func (m *ListHistoryTasksRequest) XXX_Size() int { + return m.Size() +} +func (m *ListHistoryTasksRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListHistoryTasksRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListHistoryTasksRequest proto.InternalMessageInfo + +func (m *ListHistoryTasksRequest) GetShardId() int32 { + if m != nil { + return m.ShardId + } + return 0 +} + +func (m *ListHistoryTasksRequest) GetCategory() v13.TaskCategory { + if m != nil { + return m.Category + } + return v13.TASK_CATEGORY_UNSPECIFIED +} + +func (m *ListHistoryTasksRequest) GetTaskRange() *v14.TaskRange { + if m != nil { + return m.TaskRange + } + return nil +} + +func (m *ListHistoryTasksRequest) GetBatchSize() int32 { + if m != nil { + return m.BatchSize + } + return 0 +} + +func (m *ListHistoryTasksRequest) GetNextPageToken() []byte { + if m != nil { + return m.NextPageToken + } + return nil +} + +type ListHistoryTasksResponse struct { + Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` + NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (m *ListHistoryTasksResponse) Reset() { *m = ListHistoryTasksResponse{} } +func (*ListHistoryTasksResponse) ProtoMessage() {} +func (*ListHistoryTasksResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc07c1a2abe7cb51, []int{11} +} +func (m *ListHistoryTasksResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListHistoryTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListHistoryTasksResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListHistoryTasksResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListHistoryTasksResponse.Merge(m, src) +} +func (m *ListHistoryTasksResponse) XXX_Size() int { + return m.Size() +} +func (m *ListHistoryTasksResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListHistoryTasksResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListHistoryTasksResponse proto.InternalMessageInfo + +func (m *ListHistoryTasksResponse) GetTasks() []*Task { + if m != nil { + return m.Tasks + } + return nil +} + +func (m *ListHistoryTasksResponse) GetNextPageToken() []byte { + if m != nil { + return m.NextPageToken + } + return nil +} + +// Deprecated: Do not use. type ListTransferTasksRequest struct { ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` MinTaskId int64 `protobuf:"varint,2,opt,name=min_task_id,json=minTaskId,proto3" json:"min_task_id,omitempty"` @@ -591,7 +718,7 @@ type ListTransferTasksRequest struct { func (m *ListTransferTasksRequest) Reset() { *m = ListTransferTasksRequest{} } func (*ListTransferTasksRequest) ProtoMessage() {} func (*ListTransferTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{10} + return fileDescriptor_cc07c1a2abe7cb51, []int{12} } func (m *ListTransferTasksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -655,6 +782,7 @@ func (m *ListTransferTasksRequest) GetNextPageToken() []byte { return nil } +// Deprecated: Do not use. type ListTransferTasksResponse struct { Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -663,7 +791,7 @@ type ListTransferTasksResponse struct { func (m *ListTransferTasksResponse) Reset() { *m = ListTransferTasksResponse{} } func (*ListTransferTasksResponse) ProtoMessage() {} func (*ListTransferTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{11} + return fileDescriptor_cc07c1a2abe7cb51, []int{13} } func (m *ListTransferTasksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -706,6 +834,7 @@ func (m *ListTransferTasksResponse) GetNextPageToken() []byte { return nil } +// Deprecated: Do not use. type ListVisibilityTasksRequest struct { ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` ReadLevel int64 `protobuf:"varint,2,opt,name=read_level,json=readLevel,proto3" json:"read_level,omitempty"` @@ -717,7 +846,7 @@ type ListVisibilityTasksRequest struct { func (m *ListVisibilityTasksRequest) Reset() { *m = ListVisibilityTasksRequest{} } func (*ListVisibilityTasksRequest) ProtoMessage() {} func (*ListVisibilityTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{12} + return fileDescriptor_cc07c1a2abe7cb51, []int{14} } func (m *ListVisibilityTasksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -781,6 +910,7 @@ func (m *ListVisibilityTasksRequest) GetNextPageToken() []byte { return nil } +// Deprecated: Do not use. type ListVisibilityTasksResponse struct { Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -789,7 +919,7 @@ type ListVisibilityTasksResponse struct { func (m *ListVisibilityTasksResponse) Reset() { *m = ListVisibilityTasksResponse{} } func (*ListVisibilityTasksResponse) ProtoMessage() {} func (*ListVisibilityTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{13} + return fileDescriptor_cc07c1a2abe7cb51, []int{15} } func (m *ListVisibilityTasksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -832,6 +962,7 @@ func (m *ListVisibilityTasksResponse) GetNextPageToken() []byte { return nil } +// Deprecated: Do not use. type ListTimerTasksRequest struct { ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` MinTime *time.Time `protobuf:"bytes,2,opt,name=min_time,json=minTime,proto3,stdtime" json:"min_time,omitempty"` @@ -843,7 +974,7 @@ type ListTimerTasksRequest struct { func (m *ListTimerTasksRequest) Reset() { *m = ListTimerTasksRequest{} } func (*ListTimerTasksRequest) ProtoMessage() {} func (*ListTimerTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{14} + return fileDescriptor_cc07c1a2abe7cb51, []int{16} } func (m *ListTimerTasksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -907,6 +1038,7 @@ func (m *ListTimerTasksRequest) GetNextPageToken() []byte { return nil } +// Deprecated: Do not use. type ListTimerTasksResponse struct { Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -915,7 +1047,7 @@ type ListTimerTasksResponse struct { func (m *ListTimerTasksResponse) Reset() { *m = ListTimerTasksResponse{} } func (*ListTimerTasksResponse) ProtoMessage() {} func (*ListTimerTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{15} + return fileDescriptor_cc07c1a2abe7cb51, []int{17} } func (m *ListTimerTasksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -958,6 +1090,7 @@ func (m *ListTimerTasksResponse) GetNextPageToken() []byte { return nil } +// Deprecated: Do not use. type ListReplicationTasksRequest struct { ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` MinTaskId int64 `protobuf:"varint,2,opt,name=min_task_id,json=minTaskId,proto3" json:"min_task_id,omitempty"` @@ -969,7 +1102,7 @@ type ListReplicationTasksRequest struct { func (m *ListReplicationTasksRequest) Reset() { *m = ListReplicationTasksRequest{} } func (*ListReplicationTasksRequest) ProtoMessage() {} func (*ListReplicationTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{16} + return fileDescriptor_cc07c1a2abe7cb51, []int{18} } func (m *ListReplicationTasksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1033,6 +1166,7 @@ func (m *ListReplicationTasksRequest) GetNextPageToken() []byte { return nil } +// Deprecated: Do not use. type ListReplicationTasksResponse struct { Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1041,7 +1175,7 @@ type ListReplicationTasksResponse struct { func (m *ListReplicationTasksResponse) Reset() { *m = ListReplicationTasksResponse{} } func (*ListReplicationTasksResponse) ProtoMessage() {} func (*ListReplicationTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{17} + return fileDescriptor_cc07c1a2abe7cb51, []int{19} } func (m *ListReplicationTasksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1097,7 +1231,7 @@ type Task struct { func (m *Task) Reset() { *m = Task{} } func (*Task) ProtoMessage() {} func (*Task) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{18} + return fileDescriptor_cc07c1a2abe7cb51, []int{20} } func (m *Task) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1185,7 +1319,7 @@ type RemoveTaskRequest struct { func (m *RemoveTaskRequest) Reset() { *m = RemoveTaskRequest{} } func (*RemoveTaskRequest) ProtoMessage() {} func (*RemoveTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{19} + return fileDescriptor_cc07c1a2abe7cb51, []int{21} } func (m *RemoveTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1248,7 +1382,7 @@ type RemoveTaskResponse struct { func (m *RemoveTaskResponse) Reset() { *m = RemoveTaskResponse{} } func (*RemoveTaskResponse) ProtoMessage() {} func (*RemoveTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{20} + return fileDescriptor_cc07c1a2abe7cb51, []int{22} } func (m *RemoveTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1296,7 +1430,7 @@ func (m *GetWorkflowExecutionRawHistoryV2Request) Reset() { } func (*GetWorkflowExecutionRawHistoryV2Request) ProtoMessage() {} func (*GetWorkflowExecutionRawHistoryV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{21} + return fileDescriptor_cc07c1a2abe7cb51, []int{23} } func (m *GetWorkflowExecutionRawHistoryV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1392,7 +1526,7 @@ func (m *GetWorkflowExecutionRawHistoryV2Response) Reset() { } func (*GetWorkflowExecutionRawHistoryV2Response) ProtoMessage() {} func (*GetWorkflowExecutionRawHistoryV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{22} + return fileDescriptor_cc07c1a2abe7cb51, []int{24} } func (m *GetWorkflowExecutionRawHistoryV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1450,7 +1584,7 @@ type GetReplicationMessagesRequest struct { func (m *GetReplicationMessagesRequest) Reset() { *m = GetReplicationMessagesRequest{} } func (*GetReplicationMessagesRequest) ProtoMessage() {} func (*GetReplicationMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{23} + return fileDescriptor_cc07c1a2abe7cb51, []int{25} } func (m *GetReplicationMessagesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1500,7 +1634,7 @@ type GetReplicationMessagesResponse struct { func (m *GetReplicationMessagesResponse) Reset() { *m = GetReplicationMessagesResponse{} } func (*GetReplicationMessagesResponse) ProtoMessage() {} func (*GetReplicationMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{24} + return fileDescriptor_cc07c1a2abe7cb51, []int{26} } func (m *GetReplicationMessagesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1551,7 +1685,7 @@ func (m *GetNamespaceReplicationMessagesRequest) Reset() { } func (*GetNamespaceReplicationMessagesRequest) ProtoMessage() {} func (*GetNamespaceReplicationMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{25} + return fileDescriptor_cc07c1a2abe7cb51, []int{27} } func (m *GetNamespaceReplicationMessagesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1610,7 +1744,7 @@ func (m *GetNamespaceReplicationMessagesResponse) Reset() { } func (*GetNamespaceReplicationMessagesResponse) ProtoMessage() {} func (*GetNamespaceReplicationMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{26} + return fileDescriptor_cc07c1a2abe7cb51, []int{28} } func (m *GetNamespaceReplicationMessagesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1653,7 +1787,7 @@ type GetDLQReplicationMessagesRequest struct { func (m *GetDLQReplicationMessagesRequest) Reset() { *m = GetDLQReplicationMessagesRequest{} } func (*GetDLQReplicationMessagesRequest) ProtoMessage() {} func (*GetDLQReplicationMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{27} + return fileDescriptor_cc07c1a2abe7cb51, []int{29} } func (m *GetDLQReplicationMessagesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1696,7 +1830,7 @@ type GetDLQReplicationMessagesResponse struct { func (m *GetDLQReplicationMessagesResponse) Reset() { *m = GetDLQReplicationMessagesResponse{} } func (*GetDLQReplicationMessagesResponse) ProtoMessage() {} func (*GetDLQReplicationMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{28} + return fileDescriptor_cc07c1a2abe7cb51, []int{30} } func (m *GetDLQReplicationMessagesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1742,7 +1876,7 @@ type ReapplyEventsRequest struct { func (m *ReapplyEventsRequest) Reset() { *m = ReapplyEventsRequest{} } func (*ReapplyEventsRequest) ProtoMessage() {} func (*ReapplyEventsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{29} + return fileDescriptor_cc07c1a2abe7cb51, []int{31} } func (m *ReapplyEventsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1798,7 +1932,7 @@ type ReapplyEventsResponse struct { func (m *ReapplyEventsResponse) Reset() { *m = ReapplyEventsResponse{} } func (*ReapplyEventsResponse) ProtoMessage() {} func (*ReapplyEventsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{30} + return fileDescriptor_cc07c1a2abe7cb51, []int{32} } func (m *ReapplyEventsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1836,7 +1970,7 @@ type AddSearchAttributesRequest struct { func (m *AddSearchAttributesRequest) Reset() { *m = AddSearchAttributesRequest{} } func (*AddSearchAttributesRequest) ProtoMessage() {} func (*AddSearchAttributesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{31} + return fileDescriptor_cc07c1a2abe7cb51, []int{33} } func (m *AddSearchAttributesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1892,7 +2026,7 @@ type AddSearchAttributesResponse struct { func (m *AddSearchAttributesResponse) Reset() { *m = AddSearchAttributesResponse{} } func (*AddSearchAttributesResponse) ProtoMessage() {} func (*AddSearchAttributesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{32} + return fileDescriptor_cc07c1a2abe7cb51, []int{34} } func (m *AddSearchAttributesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1929,7 +2063,7 @@ type RemoveSearchAttributesRequest struct { func (m *RemoveSearchAttributesRequest) Reset() { *m = RemoveSearchAttributesRequest{} } func (*RemoveSearchAttributesRequest) ProtoMessage() {} func (*RemoveSearchAttributesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{33} + return fileDescriptor_cc07c1a2abe7cb51, []int{35} } func (m *RemoveSearchAttributesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1978,7 +2112,7 @@ type RemoveSearchAttributesResponse struct { func (m *RemoveSearchAttributesResponse) Reset() { *m = RemoveSearchAttributesResponse{} } func (*RemoveSearchAttributesResponse) ProtoMessage() {} func (*RemoveSearchAttributesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{34} + return fileDescriptor_cc07c1a2abe7cb51, []int{36} } func (m *RemoveSearchAttributesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2014,7 +2148,7 @@ type GetSearchAttributesRequest struct { func (m *GetSearchAttributesRequest) Reset() { *m = GetSearchAttributesRequest{} } func (*GetSearchAttributesRequest) ProtoMessage() {} func (*GetSearchAttributesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{35} + return fileDescriptor_cc07c1a2abe7cb51, []int{37} } func (m *GetSearchAttributesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2061,7 +2195,7 @@ type GetSearchAttributesResponse struct { func (m *GetSearchAttributesResponse) Reset() { *m = GetSearchAttributesResponse{} } func (*GetSearchAttributesResponse) ProtoMessage() {} func (*GetSearchAttributesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{36} + return fileDescriptor_cc07c1a2abe7cb51, []int{38} } func (m *GetSearchAttributesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2125,7 +2259,7 @@ type DescribeClusterRequest struct { func (m *DescribeClusterRequest) Reset() { *m = DescribeClusterRequest{} } func (*DescribeClusterRequest) ProtoMessage() {} func (*DescribeClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{37} + return fileDescriptor_cc07c1a2abe7cb51, []int{39} } func (m *DescribeClusterRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2179,7 +2313,7 @@ type DescribeClusterResponse struct { func (m *DescribeClusterResponse) Reset() { *m = DescribeClusterResponse{} } func (*DescribeClusterResponse) ProtoMessage() {} func (*DescribeClusterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{38} + return fileDescriptor_cc07c1a2abe7cb51, []int{40} } func (m *DescribeClusterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2300,7 +2434,7 @@ type ListClustersRequest struct { func (m *ListClustersRequest) Reset() { *m = ListClustersRequest{} } func (*ListClustersRequest) ProtoMessage() {} func (*ListClustersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{39} + return fileDescriptor_cc07c1a2abe7cb51, []int{41} } func (m *ListClustersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2351,7 +2485,7 @@ type ListClustersResponse struct { func (m *ListClustersResponse) Reset() { *m = ListClustersResponse{} } func (*ListClustersResponse) ProtoMessage() {} func (*ListClustersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{40} + return fileDescriptor_cc07c1a2abe7cb51, []int{42} } func (m *ListClustersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2402,7 +2536,7 @@ type AddOrUpdateRemoteClusterRequest struct { func (m *AddOrUpdateRemoteClusterRequest) Reset() { *m = AddOrUpdateRemoteClusterRequest{} } func (*AddOrUpdateRemoteClusterRequest) ProtoMessage() {} func (*AddOrUpdateRemoteClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{41} + return fileDescriptor_cc07c1a2abe7cb51, []int{43} } func (m *AddOrUpdateRemoteClusterRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2451,7 +2585,7 @@ type AddOrUpdateRemoteClusterResponse struct { func (m *AddOrUpdateRemoteClusterResponse) Reset() { *m = AddOrUpdateRemoteClusterResponse{} } func (*AddOrUpdateRemoteClusterResponse) ProtoMessage() {} func (*AddOrUpdateRemoteClusterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{42} + return fileDescriptor_cc07c1a2abe7cb51, []int{44} } func (m *AddOrUpdateRemoteClusterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2487,7 +2621,7 @@ type RemoveRemoteClusterRequest struct { func (m *RemoveRemoteClusterRequest) Reset() { *m = RemoveRemoteClusterRequest{} } func (*RemoveRemoteClusterRequest) ProtoMessage() {} func (*RemoveRemoteClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{43} + return fileDescriptor_cc07c1a2abe7cb51, []int{45} } func (m *RemoveRemoteClusterRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2529,7 +2663,7 @@ type RemoveRemoteClusterResponse struct { func (m *RemoveRemoteClusterResponse) Reset() { *m = RemoveRemoteClusterResponse{} } func (*RemoveRemoteClusterResponse) ProtoMessage() {} func (*RemoveRemoteClusterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{44} + return fileDescriptor_cc07c1a2abe7cb51, []int{46} } func (m *RemoveRemoteClusterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2575,7 +2709,7 @@ type ListClusterMembersRequest struct { func (m *ListClusterMembersRequest) Reset() { *m = ListClusterMembersRequest{} } func (*ListClusterMembersRequest) ProtoMessage() {} func (*ListClusterMembersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{45} + return fileDescriptor_cc07c1a2abe7cb51, []int{47} } func (m *ListClusterMembersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2661,7 +2795,7 @@ type ListClusterMembersResponse struct { func (m *ListClusterMembersResponse) Reset() { *m = ListClusterMembersResponse{} } func (*ListClusterMembersResponse) ProtoMessage() {} func (*ListClusterMembersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{46} + return fileDescriptor_cc07c1a2abe7cb51, []int{48} } func (m *ListClusterMembersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2716,7 +2850,7 @@ type GetDLQMessagesRequest struct { func (m *GetDLQMessagesRequest) Reset() { *m = GetDLQMessagesRequest{} } func (*GetDLQMessagesRequest) ProtoMessage() {} func (*GetDLQMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{47} + return fileDescriptor_cc07c1a2abe7cb51, []int{49} } func (m *GetDLQMessagesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2796,7 +2930,7 @@ type GetDLQMessagesResponse struct { func (m *GetDLQMessagesResponse) Reset() { *m = GetDLQMessagesResponse{} } func (*GetDLQMessagesResponse) ProtoMessage() {} func (*GetDLQMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{48} + return fileDescriptor_cc07c1a2abe7cb51, []int{50} } func (m *GetDLQMessagesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2856,7 +2990,7 @@ type PurgeDLQMessagesRequest struct { func (m *PurgeDLQMessagesRequest) Reset() { *m = PurgeDLQMessagesRequest{} } func (*PurgeDLQMessagesRequest) ProtoMessage() {} func (*PurgeDLQMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{49} + return fileDescriptor_cc07c1a2abe7cb51, []int{51} } func (m *PurgeDLQMessagesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2919,7 +3053,7 @@ type PurgeDLQMessagesResponse struct { func (m *PurgeDLQMessagesResponse) Reset() { *m = PurgeDLQMessagesResponse{} } func (*PurgeDLQMessagesResponse) ProtoMessage() {} func (*PurgeDLQMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{50} + return fileDescriptor_cc07c1a2abe7cb51, []int{52} } func (m *PurgeDLQMessagesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2960,7 +3094,7 @@ type MergeDLQMessagesRequest struct { func (m *MergeDLQMessagesRequest) Reset() { *m = MergeDLQMessagesRequest{} } func (*MergeDLQMessagesRequest) ProtoMessage() {} func (*MergeDLQMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{51} + return fileDescriptor_cc07c1a2abe7cb51, []int{53} } func (m *MergeDLQMessagesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3038,7 +3172,7 @@ type MergeDLQMessagesResponse struct { func (m *MergeDLQMessagesResponse) Reset() { *m = MergeDLQMessagesResponse{} } func (*MergeDLQMessagesResponse) ProtoMessage() {} func (*MergeDLQMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{52} + return fileDescriptor_cc07c1a2abe7cb51, []int{54} } func (m *MergeDLQMessagesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3082,7 +3216,7 @@ type RefreshWorkflowTasksRequest struct { func (m *RefreshWorkflowTasksRequest) Reset() { *m = RefreshWorkflowTasksRequest{} } func (*RefreshWorkflowTasksRequest) ProtoMessage() {} func (*RefreshWorkflowTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{53} + return fileDescriptor_cc07c1a2abe7cb51, []int{55} } func (m *RefreshWorkflowTasksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3131,7 +3265,7 @@ type RefreshWorkflowTasksResponse struct { func (m *RefreshWorkflowTasksResponse) Reset() { *m = RefreshWorkflowTasksResponse{} } func (*RefreshWorkflowTasksResponse) ProtoMessage() {} func (*RefreshWorkflowTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{54} + return fileDescriptor_cc07c1a2abe7cb51, []int{56} } func (m *RefreshWorkflowTasksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3174,7 +3308,7 @@ type ResendReplicationTasksRequest struct { func (m *ResendReplicationTasksRequest) Reset() { *m = ResendReplicationTasksRequest{} } func (*ResendReplicationTasksRequest) ProtoMessage() {} func (*ResendReplicationTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{55} + return fileDescriptor_cc07c1a2abe7cb51, []int{57} } func (m *ResendReplicationTasksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3265,7 +3399,7 @@ type ResendReplicationTasksResponse struct { func (m *ResendReplicationTasksResponse) Reset() { *m = ResendReplicationTasksResponse{} } func (*ResendReplicationTasksResponse) ProtoMessage() {} func (*ResendReplicationTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{56} + return fileDescriptor_cc07c1a2abe7cb51, []int{58} } func (m *ResendReplicationTasksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3306,7 +3440,7 @@ type GetTaskQueueTasksRequest struct { func (m *GetTaskQueueTasksRequest) Reset() { *m = GetTaskQueueTasksRequest{} } func (*GetTaskQueueTasksRequest) ProtoMessage() {} func (*GetTaskQueueTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{57} + return fileDescriptor_cc07c1a2abe7cb51, []int{59} } func (m *GetTaskQueueTasksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3384,7 +3518,7 @@ type GetTaskQueueTasksResponse struct { func (m *GetTaskQueueTasksResponse) Reset() { *m = GetTaskQueueTasksResponse{} } func (*GetTaskQueueTasksResponse) ProtoMessage() {} func (*GetTaskQueueTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc07c1a2abe7cb51, []int{58} + return fileDescriptor_cc07c1a2abe7cb51, []int{60} } func (m *GetTaskQueueTasksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3431,6 +3565,8 @@ func init() { proto.RegisterType((*CloseShardResponse)(nil), "temporal.server.api.adminservice.v1.CloseShardResponse") proto.RegisterType((*GetShardRequest)(nil), "temporal.server.api.adminservice.v1.GetShardRequest") proto.RegisterType((*GetShardResponse)(nil), "temporal.server.api.adminservice.v1.GetShardResponse") + proto.RegisterType((*ListHistoryTasksRequest)(nil), "temporal.server.api.adminservice.v1.ListHistoryTasksRequest") + proto.RegisterType((*ListHistoryTasksResponse)(nil), "temporal.server.api.adminservice.v1.ListHistoryTasksResponse") proto.RegisterType((*ListTransferTasksRequest)(nil), "temporal.server.api.adminservice.v1.ListTransferTasksRequest") proto.RegisterType((*ListTransferTasksResponse)(nil), "temporal.server.api.adminservice.v1.ListTransferTasksResponse") proto.RegisterType((*ListVisibilityTasksRequest)(nil), "temporal.server.api.adminservice.v1.ListVisibilityTasksRequest") @@ -3493,199 +3629,202 @@ func init() { } var fileDescriptor_cc07c1a2abe7cb51 = []byte{ - // 3062 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5a, 0xdb, 0x6f, 0x1b, 0xc7, - 0xd5, 0xf7, 0x92, 0xa2, 0x44, 0x1e, 0xdd, 0xd7, 0x96, 0x45, 0x53, 0x16, 0xa5, 0x30, 0x8e, 0x63, - 0xfb, 0x4b, 0xa8, 0xcf, 0x4a, 0x9b, 0x38, 0x71, 0x83, 0x40, 0x96, 0x1d, 0x45, 0xa8, 0x94, 0xcb, - 0xca, 0xb1, 0x8b, 0x00, 0xc1, 0x66, 0xb9, 0x3b, 0xa2, 0x16, 0xde, 0x5b, 0x76, 0x86, 0xb4, 0x14, - 0xa0, 0xd7, 0xf4, 0xf6, 0x56, 0x03, 0x45, 0x81, 0x20, 0x7f, 0x41, 0xfb, 0x50, 0xf4, 0xad, 0x4f, - 0x05, 0x8a, 0xa2, 0x2f, 0x79, 0x0c, 0xfa, 0x14, 0xb4, 0x05, 0xd2, 0xc8, 0x2f, 0xed, 0x5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, 0x65, 0xf4, 0x11, 0xc6, 0x56, 0x13, 0x29, 0x27, 0x6d, 0xa3, 0x18, 0xbb, - 0x2a, 0xb6, 0xec, 0xa4, 0x77, 0xc3, 0xf8, 0xce, 0xae, 0x17, 0xde, 0xed, 0xe5, 0xbb, 0x98, 0xe1, - 0x8b, 0x51, 0xe4, 0xb9, 0x36, 0x83, 0xaa, 0x97, 0xf5, 0xe9, 0x0c, 0x6b, 0xe2, 0x65, 0x2f, 0xe3, - 0x33, 0xaa, 0x00, 0xb0, 0xbd, 0x16, 0x26, 0x28, 0x1e, 0x64, 0x41, 0x8a, 0x5b, 0x0d, 0xf8, 0xa5, - 0xc1, 0xac, 0x7c, 0x86, 0x1e, 0x6b, 0x55, 0xbc, 0x14, 0xfc, 0x41, 0xd6, 0xee, 0xb9, 0x98, 0x84, - 0xf1, 0x41, 0xaf, 0xb5, 0x75, 0x15, 0xf7, 0x00, 0x2c, 0xfe, 0x5f, 0xc5, 0x3f, 0x10, 0xe6, 0x17, - 0x55, 0x12, 0x11, 0x5d, 0x67, 0x4c, 0x50, 0xc0, 0xe7, 0x10, 0xae, 0x9a, 0x3e, 0x22, 0x96, 0x63, - 0x11, 0x4b, 0x88, 0x3e, 0x37, 0x84, 0x28, 0xda, 0x47, 0x76, 0x8b, 0xce, 0x8c, 0x8f, 0x21, 0x94, - 0x38, 0x28, 0x85, 0x5e, 0x19, 0x42, 0x48, 0x06, 0x9d, 0xe9, 0xb7, 0x88, 0xd5, 0xf0, 0x90, 0x89, - 0x89, 0x45, 0x06, 0xe2, 0xd8, 0xa5, 0x80, 0x2e, 0x92, 0x98, 0xb0, 0xf6, 0xa1, 0x06, 0x15, 0x03, - 0x35, 0x5a, 0xae, 0xe7, 0x6c, 0x73, 0x75, 0x3b, 0x54, 0x9b, 0xc1, 0xd3, 0x88, 0x7e, 0x16, 0x4a, - 0x89, 0x8d, 0x65, 0x6d, 0x59, 0xbb, 0x50, 0x32, 0x3a, 0x04, 0x7d, 0x03, 0x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xbf, - 0x83, 0x0e, 0x44, 0x9a, 0xa2, 0x3f, 0xf5, 0x6d, 0x28, 0xb4, 0x2d, 0xaf, 0x25, 0x8b, 0x8f, 0x17, - 0x8e, 0x89, 0x5c, 0x62, 0x19, 0xd7, 0xf2, 0x52, 0xee, 0x8a, 0x56, 0xfb, 0x93, 0x06, 0xe7, 0x37, - 0x10, 0x49, 0xae, 0x3b, 0x03, 0x16, 0xee, 0x45, 0x38, 0xe3, 0x59, 0xac, 0x35, 0x4a, 0x62, 0x17, - 0xb5, 0x51, 0x82, 0x96, 0x4c, 0xa6, 0x79, 0xe3, 0x34, 0x65, 0x30, 0xe4, 0xb8, 0x50, 0xb0, 0xe9, - 0x24, 0xa2, 0x51, 0x1c, 0xda, 0x08, 0xe3, 0xac, 0x68, 0xae, 0x23, 0xfa, 0xa6, 0x1c, 0xef, 0x88, - 0x76, 0x2f, 0x70, 0xbe, 0x77, 0x81, 0xbf, 0xc7, 0xd2, 0xde, 0x60, 0x17, 0xc4, 0x42, 0xef, 0x40, - 0x31, 0xb5, 0xc4, 0x0f, 0x04, 0x62, 0xa2, 0xa8, 0xf6, 0x01, 0x2c, 0x6f, 0x20, 0x72, 0x7d, 0xeb, - 0xad, 0x01, 0xe0, 0xdd, 0x02, 0xe0, 0xa7, 0x42, 0xb0, 0x1b, 0xca, 0xe8, 0x3a, 0xee, 0xd4, 0xac, - 0x8a, 0x61, 0x97, 0x2b, 0x22, 0x7e, 0xe1, 0xda, 0x4f, 0x34, 0x78, 0x62, 0xc0, 0xe4, 0xc2, 0xed, - 0xf7, 0x60, 0x36, 0xa5, 0xd6, 0x4c, 0x17, 0x27, 0xcf, 0x7d, 0x05, 0x23, 0x8c, 0x99, 0xb8, 0xab, - 0xf4, 0xa9, 0x7d, 0xa2, 0xc1, 0x29, 0x03, 0x59, 0x51, 0xe4, 0x1d, 0xb0, 0xe4, 0x8a, 0x87, 0x3b, - 0x68, 0xd4, 0xed, 0x85, 0xdc, 0x83, 0xb7, 0x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x18, 0x7f, 0x35, - 0xab, 0x42, 0x7f, 0x19, 0x16, 0x5c, 0x6c, 0x36, 0xbd, 0xb0, 0x61, 0x79, 0x66, 0xa7, 0x75, 0x83, - 0x02, 0xab, 0xe1, 0x21, 0xa7, 0x3c, 0xc1, 0x4e, 0xe4, 0xb2, 0x8b, 0x37, 0x18, 0x47, 0x52, 0xdb, - 0xde, 0xe0, 0xe3, 0x95, 0x75, 0x98, 0x53, 0x06, 0xdd, 0xb1, 0x36, 0xda, 0x3b, 0x70, 0x72, 0xcb, - 0xc5, 0x44, 0x44, 0x73, 0x72, 0x76, 0x2d, 0x40, 0xa9, 0x73, 0x0f, 0xe6, 0xb7, 0x8f, 0x62, 0x34, - 0xe0, 0x02, 0xac, 0xec, 0x4c, 0xfd, 0x42, 0x83, 0x53, 0x59, 0xe5, 0x62, 0x13, 0xbe, 0x01, 0x45, - 0x11, 0x50, 0x83, 0x2b, 0xd0, 0xae, 0x97, 0x05, 0xa1, 0x67, 0x5b, 0x3c, 0x2c, 0x1b, 0x89, 0x92, - 0xa1, 0x2d, 0xfa, 0x95, 0x06, 0x4b, 0x6b, 0x8e, 0xf3, 0x46, 0xcc, 0x8b, 0x1b, 0x7a, 0xbc, 0x93, - 0xee, 0x04, 0x73, 0x11, 0x66, 0x76, 0xe3, 0x30, 0x20, 0x28, 0x70, 0xba, 0x5e, 0xd3, 0xa6, 0x25, - 0x5d, 0xbe, 0xa8, 0x6d, 0xc0, 0x32, 0x5f, 0x2c, 0x33, 0x66, 0x9a, 0x4c, 0xb9, 0x75, 0xec, 0x30, - 0x08, 0x90, 0x9d, 0xd4, 0xb1, 0x45, 0x63, 0x91, 0xf3, 0x65, 0x26, 0x5c, 0x4f, 0x98, 0x6a, 0x35, - 0x58, 0xee, 0x6f, 0x96, 0x28, 0x36, 0x5e, 0x81, 0x0a, 0x2f, 0x47, 0x94, 0x56, 0x0f, 0x91, 0x16, - 0xd9, 0x03, 0xb1, 0x42, 0x81, 0xd0, 0xff, 0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x7b, 0xf7, 0xab, 0x27, 0x3e, 0xbd, 0x5f, 0x3d, 0xf1, - 0xd9, 0xfd, 0xea, 0x89, 0x77, 0x9e, 0x6f, 0x86, 0x9d, 0x59, 0xdd, 0x70, 0xc0, 0x3f, 0xb0, 0xaf, - 0xa6, 0xbf, 0x1b, 0xa3, 0xac, 0xf4, 0x7a, 0xee, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x71, 0x13, - 0x05, 0x18, 0xbc, 0x2d, 0x00, 0x00, + // 3111 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5a, 0xcd, 0x6f, 0x1b, 0xc7, + 0x15, 0xf7, 0x92, 0xa2, 0x44, 0x3e, 0x7d, 0xaf, 0x2d, 0x8b, 0xa6, 0x2c, 0x4a, 0x61, 0x1c, 0xc7, + 0x76, 0x13, 0xaa, 0x56, 0xda, 0xc4, 0xb1, 0x1b, 0x04, 0xb2, 0xec, 0xc8, 0x42, 0xa5, 0x7c, 0x2c, + 0x1d, 0xbb, 0x08, 0x10, 0x6c, 0x86, 0xbb, 0x23, 0x6a, 0xe1, 0xfd, 0x60, 0x76, 0x86, 0xb4, 0x14, + 0xa0, 0x1f, 0x68, 0x5a, 0x20, 0x68, 0x51, 0xd4, 0x40, 0x51, 0x20, 0xc8, 0x5f, 0xd0, 0x1e, 0x8a, + 0xde, 0x7a, 0x6e, 0xd1, 0x43, 0x73, 0x0c, 0x7a, 0x0a, 0xda, 0x02, 0x69, 0xe4, 0x4b, 0x7b, 0xcb, + 0xa9, 0xbd, 0x16, 0xf3, 0xb5, 0xdc, 0x25, 0x97, 0x14, 0x55, 0x7f, 0x01, 0xb9, 0x71, 0xdf, 0xbc, + 0xf7, 0xe6, 0xcd, 0xef, 0xbd, 0x79, 0xf3, 0xde, 0x0c, 0xe1, 0x32, 0xc5, 0x5e, 0x33, 0x08, 0x91, + 0xbb, 0x42, 0x70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10, 0x39, + 0xac, 0xf2, 0x13, 0x0d, 0x16, 0xae, 0x61, 0x62, 0x85, 0x4e, 0x1d, 0x3f, 0x41, 0x2b, 0xff, 0x90, + 0x81, 0xd3, 0xe9, 0x66, 0x08, 0x3b, 0xf5, 0x53, 0x90, 0x27, 0xbb, 0x28, 0xb4, 0x4d, 0xc7, 0x96, + 0x66, 0x8c, 0xf1, 0xef, 0x4d, 0x5b, 0x7f, 0x0a, 0x26, 0x64, 0xec, 0x9b, 0xc8, 0xb6, 0x43, 0x6e, + 0x47, 0xc1, 0x18, 0x97, 0xb4, 0x35, 0xdb, 0x0e, 0xf5, 0x5d, 0x38, 0x6e, 0x21, 0x6b, 0x17, 0x27, + 0xfd, 0x5a, 0xcc, 0x72, 0x8b, 0x2f, 0x55, 0xd3, 0x32, 0x78, 0xcc, 0xb1, 0x71, 0xeb, 0x13, 0xc6, + 0xcd, 0x72, 0xa5, 0x71, 0x92, 0xee, 0xc3, 0x49, 0x16, 0xdd, 0x75, 0x44, 0xba, 0x27, 0x1b, 0x79, + 0xc0, 0xc9, 0x4e, 0x28, 0xbd, 0x71, 0x6a, 0xe5, 0xaf, 0x1a, 0x94, 0x14, 0x70, 0x37, 0xc4, 0x8a, + 0x6f, 0x04, 0x84, 0x2a, 0xf7, 0x31, 0x6c, 0x02, 0x42, 0x39, 0x30, 0x98, 0x10, 0x09, 0xdd, 0x38, + 0xa3, 0xad, 0x09, 0x52, 0x02, 0x59, 0x06, 0x5d, 0xae, 0x83, 0x6c, 0xc2, 0xf9, 0xd9, 0x6e, 0xe7, + 0x7f, 0x0f, 0xf4, 0x68, 0xbf, 0x74, 0xa2, 0x60, 0xe4, 0xa8, 0x51, 0x30, 0x7b, 0xb7, 0x9b, 0x54, + 0xb9, 0x97, 0xe9, 0x04, 0x65, 0x62, 0x51, 0x32, 0x18, 0x9e, 0x86, 0x49, 0x6e, 0x22, 0x31, 0xfd, + 0x96, 0x57, 0xc7, 0x21, 0x5f, 0x56, 0xce, 0x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0x32, 0x86, 0x8a, 0xa9, 0x3e, 0x8a, 0xab, 0x35, + 0xa5, 0x75, 0x5d, 0x28, 0x55, 0xa1, 0xdc, 0x45, 0xd6, 0x9f, 0x81, 0x29, 0xa1, 0x3d, 0x6a, 0x49, + 0xc4, 0xe2, 0x27, 0x05, 0x55, 0x35, 0x24, 0xb7, 0x61, 0xda, 0xc3, 0x5e, 0x1d, 0x87, 0x64, 0xd7, + 0x69, 0x8a, 0xe0, 0x1b, 0x54, 0x9c, 0xab, 0x57, 0xe1, 0xf6, 0xc5, 0xea, 0x76, 0x24, 0x26, 0xde, + 0x19, 0xbc, 0xc4, 0x37, 0xcb, 0x4a, 0x0a, 0x3f, 0xd9, 0xcd, 0x17, 0x8c, 0x82, 0xa4, 0xa4, 0x94, + 0x5a, 0xb9, 0x1e, 0x78, 0x59, 0xa7, 0xa6, 0x5a, 0x10, 0xf5, 0x62, 0xd1, 0xf2, 0x29, 0xef, 0xac, + 0x72, 0xc6, 0xac, 0x1c, 0xaa, 0x89, 0xc7, 0x8a, 0x96, 0xcf, 0x73, 0x72, 0xec, 0x62, 0xdf, 0x64, + 0xc3, 0xa2, 0xb7, 0x2a, 0x18, 0x33, 0xb1, 0x81, 0x1a, 0xa3, 0xeb, 0xe7, 0x61, 0x26, 0xd6, 0x20, + 0x0b, 0xde, 0x3c, 0xe7, 0x8d, 0x35, 0xce, 0x82, 0x75, 0x03, 0x26, 0x54, 0xff, 0xc2, 0xf1, 0x29, + 0x70, 0x7c, 0xce, 0x24, 0x23, 0x55, 0x72, 0xc4, 0xba, 0x16, 0x8e, 0xca, 0x78, 0xbb, 0xf3, 0xa1, + 0x7f, 0x07, 0x4a, 0x3b, 0xc8, 0x71, 0x83, 0x98, 0x53, 0x4c, 0xc7, 0xb7, 0x42, 0xec, 0x61, 0x9f, + 0x16, 0x81, 0x97, 0xa6, 0x45, 0xc5, 0x11, 0x69, 0x91, 0xe3, 0xfa, 0x25, 0x28, 0x3a, 0xbe, 0x43, + 0x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ed, 0xb3, 0x83, 0xb2, 0xf6, 0xcf, 0x83, 0xb2, 0xf6, + 0xaf, 0x83, 0xf2, 0xb1, 0xaf, 0x0e, 0xca, 0xda, 0xbd, 0xfb, 0xe5, 0x63, 0x9f, 0xdd, 0x2f, 0x1f, + 0xfb, 0xfc, 0x7e, 0xf9, 0xd8, 0x3b, 0x2f, 0x36, 0x82, 0xce, 0xac, 0x4e, 0x30, 0xe0, 0x7f, 0xf3, + 0x57, 0xe2, 0xdf, 0xf5, 0x51, 0x5e, 0x7a, 0xbd, 0xf0, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x84, + 0xaa, 0xbe, 0xcb, 0x72, 0x2f, 0x00, 0x00, } func (this *RebuildMutableStateRequest) Equal(that interface{}) bool { @@ -3963,6 +4102,74 @@ func (this *GetShardResponse) Equal(that interface{}) bool { } return true } +func (this *ListHistoryTasksRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ListHistoryTasksRequest) + if !ok { + that2, ok := that.(ListHistoryTasksRequest) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ShardId != that1.ShardId { + return false + } + if this.Category != that1.Category { + return false + } + if !this.TaskRange.Equal(that1.TaskRange) { + return false + } + if this.BatchSize != that1.BatchSize { + return false + } + if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { + return false + } + return true +} +func (this *ListHistoryTasksResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ListHistoryTasksResponse) + if !ok { + that2, ok := that.(ListHistoryTasksResponse) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.Tasks) != len(that1.Tasks) { + return false + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return false + } + } + if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { + return false + } + return true +} func (this *ListTransferTasksRequest) Equal(that interface{}) bool { if that == nil { return this == nil @@ -5651,26 +5858,28 @@ func (this *GetShardResponse) GoString() string { s = append(s, "}") return strings.Join(s, "") } -func (this *ListTransferTasksRequest) GoString() string { +func (this *ListHistoryTasksRequest) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 9) - s = append(s, "&adminservice.ListTransferTasksRequest{") + s = append(s, "&adminservice.ListHistoryTasksRequest{") s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "MinTaskId: "+fmt.Sprintf("%#v", this.MinTaskId)+",\n") - s = append(s, "MaxTaskId: "+fmt.Sprintf("%#v", this.MaxTaskId)+",\n") + s = append(s, "Category: "+fmt.Sprintf("%#v", this.Category)+",\n") + if this.TaskRange != nil { + s = append(s, "TaskRange: "+fmt.Sprintf("%#v", this.TaskRange)+",\n") + } s = append(s, "BatchSize: "+fmt.Sprintf("%#v", this.BatchSize)+",\n") s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") s = append(s, "}") return strings.Join(s, "") } -func (this *ListTransferTasksResponse) GoString() string { +func (this *ListHistoryTasksResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) - s = append(s, "&adminservice.ListTransferTasksResponse{") + s = append(s, "&adminservice.ListHistoryTasksResponse{") if this.Tasks != nil { s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n") } @@ -5678,12 +5887,39 @@ func (this *ListTransferTasksResponse) GoString() string { s = append(s, "}") return strings.Join(s, "") } -func (this *ListVisibilityTasksRequest) GoString() string { +func (this *ListTransferTasksRequest) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 9) - s = append(s, "&adminservice.ListVisibilityTasksRequest{") + s = append(s, "&adminservice.ListTransferTasksRequest{") + s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") + s = append(s, "MinTaskId: "+fmt.Sprintf("%#v", this.MinTaskId)+",\n") + s = append(s, "MaxTaskId: "+fmt.Sprintf("%#v", this.MaxTaskId)+",\n") + s = append(s, "BatchSize: "+fmt.Sprintf("%#v", this.BatchSize)+",\n") + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ListTransferTasksResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&adminservice.ListTransferTasksResponse{") + if this.Tasks != nil { + s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n") + } + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ListVisibilityTasksRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&adminservice.ListVisibilityTasksRequest{") s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") s = append(s, "ReadLevel: "+fmt.Sprintf("%#v", this.ReadLevel)+",\n") s = append(s, "MaxReadLevel: "+fmt.Sprintf("%#v", this.MaxReadLevel)+",\n") @@ -6761,6 +6997,107 @@ func (m *GetShardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ListHistoryTasksRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListHistoryTasksRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListHistoryTasksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x2a + } + if m.BatchSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.BatchSize)) + i-- + dAtA[i] = 0x20 + } + if m.TaskRange != nil { + { + size, err := m.TaskRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Category != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.Category)) + i-- + dAtA[i] = 0x10 + } + if m.ShardId != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.ShardId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListHistoryTasksResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListHistoryTasksResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListHistoryTasksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.Tasks) > 0 { + for iNdEx := len(m.Tasks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func (m *ListTransferTasksRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -6982,22 +7319,22 @@ func (m *ListTimerTasksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x20 } if m.MaxTime != nil { - n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.MaxTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.MaxTime):]) - if err10 != nil { - return 0, err10 + n11, err11 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.MaxTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.MaxTime):]) + if err11 != nil { + return 0, err11 } - i -= n10 - i = encodeVarintRequestResponse(dAtA, i, uint64(n10)) + i -= n11 + i = encodeVarintRequestResponse(dAtA, i, uint64(n11)) i-- dAtA[i] = 0x1a } if m.MinTime != nil { - n11, err11 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.MinTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.MinTime):]) - if err11 != nil { - return 0, err11 + n12, err12 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.MinTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.MinTime):]) + if err12 != nil { + return 0, err12 } - i -= n11 - i = encodeVarintRequestResponse(dAtA, i, uint64(n11)) + i -= n12 + i = encodeVarintRequestResponse(dAtA, i, uint64(n12)) i-- dAtA[i] = 0x12 } @@ -7173,12 +7510,12 @@ func (m *Task) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x38 } if m.FireTime != nil { - n12, err12 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.FireTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.FireTime):]) - if err12 != nil { - return 0, err12 + n13, err13 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.FireTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.FireTime):]) + if err13 != nil { + return 0, err13 } - i -= n12 - i = encodeVarintRequestResponse(dAtA, i, uint64(n12)) + i -= n13 + i = encodeVarintRequestResponse(dAtA, i, uint64(n13)) i-- dAtA[i] = 0x32 } @@ -7237,12 +7574,12 @@ func (m *RemoveTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.VisibilityTime != nil { - n13, err13 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.VisibilityTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.VisibilityTime):]) - if err13 != nil { - return 0, err13 + n14, err14 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.VisibilityTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.VisibilityTime):]) + if err14 != nil { + return 0, err14 } - i -= n13 - i = encodeVarintRequestResponse(dAtA, i, uint64(n13)) + i -= n14 + i = encodeVarintRequestResponse(dAtA, i, uint64(n14)) i-- dAtA[i] = 0x22 } @@ -8378,12 +8715,12 @@ func (m *ListClusterMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro dAtA[i] = 0x30 } if m.SessionStartedAfterTime != nil { - n23, err23 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.SessionStartedAfterTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.SessionStartedAfterTime):]) - if err23 != nil { - return 0, err23 + n24, err24 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.SessionStartedAfterTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.SessionStartedAfterTime):]) + if err24 != nil { + return 0, err24 } - i -= n23 - i = encodeVarintRequestResponse(dAtA, i, uint64(n23)) + i -= n24 + i = encodeVarintRequestResponse(dAtA, i, uint64(n24)) i-- dAtA[i] = 0x2a } @@ -8407,12 +8744,12 @@ func (m *ListClusterMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro dAtA[i] = 0x12 } if m.LastHeartbeatWithin != nil { - n24, err24 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.LastHeartbeatWithin, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.LastHeartbeatWithin):]) - if err24 != nil { - return 0, err24 + n25, err25 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.LastHeartbeatWithin, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.LastHeartbeatWithin):]) + if err25 != nil { + return 0, err25 } - i -= n24 - i = encodeVarintRequestResponse(dAtA, i, uint64(n24)) + i -= n25 + i = encodeVarintRequestResponse(dAtA, i, uint64(n25)) i-- dAtA[i] = 0xa } @@ -9157,6 +9494,51 @@ func (m *GetShardResponse) Size() (n int) { return n } +func (m *ListHistoryTasksRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ShardId != 0 { + n += 1 + sovRequestResponse(uint64(m.ShardId)) + } + if m.Category != 0 { + n += 1 + sovRequestResponse(uint64(m.Category)) + } + if m.TaskRange != nil { + l = m.TaskRange.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.BatchSize != 0 { + n += 1 + sovRequestResponse(uint64(m.BatchSize)) + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *ListHistoryTasksResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tasks) > 0 { + for _, e := range m.Tasks { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + func (m *ListTransferTasksRequest) Size() (n int) { if m == nil { return 0 @@ -10265,6 +10647,36 @@ func (this *GetShardResponse) String() string { }, "") return s } +func (this *ListHistoryTasksRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListHistoryTasksRequest{`, + `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, + `Category:` + fmt.Sprintf("%v", this.Category) + `,`, + `TaskRange:` + strings.Replace(fmt.Sprintf("%v", this.TaskRange), "TaskRange", "v14.TaskRange", 1) + `,`, + `BatchSize:` + fmt.Sprintf("%v", this.BatchSize) + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *ListHistoryTasksResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForTasks := "[]*Task{" + for _, f := range this.Tasks { + repeatedStringForTasks += strings.Replace(f.String(), "Task", "Task", 1) + "," + } + repeatedStringForTasks += "}" + s := strings.Join([]string{`&ListHistoryTasksResponse{`, + `Tasks:` + repeatedStringForTasks + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} func (this *ListTransferTasksRequest) String() string { if this == nil { return "nil" @@ -12162,6 +12574,307 @@ func (m *GetShardResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *ListHistoryTasksRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListHistoryTasksRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListHistoryTasksRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) + } + m.ShardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ShardId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Category", wireType) + } + m.Category = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Category |= v13.TaskCategory(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskRange == nil { + m.TaskRange = &v14.TaskRange{} + } + if err := m.TaskRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BatchSize", wireType) + } + m.BatchSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BatchSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) + if m.NextPageToken == nil { + m.NextPageToken = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListHistoryTasksResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListHistoryTasksResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListHistoryTasksResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tasks = append(m.Tasks, &Task{}) + if err := m.Tasks[len(m.Tasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) + if m.NextPageToken == nil { + m.NextPageToken = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ListTransferTasksRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/api/adminservice/v1/service.pb.go b/api/adminservice/v1/service.pb.go index dfd2a92b5bb..e402bc327b2 100644 --- a/api/adminservice/v1/service.pb.go +++ b/api/adminservice/v1/service.pb.go @@ -54,64 +54,66 @@ func init() { } var fileDescriptor_cf5ca5e0c737570d = []byte{ - // 897 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x98, 0x4f, 0x6f, 0x23, 0x35, - 0x18, 0x87, 0xe3, 0x0b, 0x42, 0x56, 0xf9, 0x37, 0x20, 0x04, 0x3d, 0x0c, 0x88, 0xde, 0x13, 0xb5, - 0x40, 0xa1, 0x09, 0x6d, 0x9a, 0xa6, 0x21, 0x95, 0x48, 0x80, 0x26, 0xa5, 0x48, 0x5c, 0x90, 0x93, - 0x79, 0xdb, 0x5a, 0x9d, 0x64, 0x06, 0xdb, 0x93, 0x92, 0x13, 0x5c, 0x90, 0x90, 0x90, 0x10, 0x48, - 0x48, 0x48, 0x20, 0x4e, 0x5c, 0x40, 0xda, 0xcf, 0xb0, 0xd2, 0xde, 0xf6, 0xd8, 0x63, 0x8f, 0xdb, - 0xf4, 0xb2, 0xc7, 0x7e, 0x84, 0xd5, 0x74, 0x62, 0x77, 0x26, 0xf1, 0x56, 0xf6, 0xa4, 0xb7, 0xa6, - 0xf6, 0xf3, 0xf3, 0x13, 0xc7, 0xaf, 0xed, 0x19, 0xbc, 0x2a, 0x60, 0x10, 0x06, 0x8c, 0xf8, 0x25, - 0x0e, 0x6c, 0x04, 0xac, 0x44, 0x42, 0x5a, 0x22, 0xde, 0x80, 0x0e, 0xe3, 0xcf, 0xb4, 0x0f, 0xa5, - 0xd1, 0x6a, 0x69, 0xfa, 0x67, 0x31, 0x64, 0x81, 0x08, 0x9c, 0x15, 0x89, 0x14, 0x13, 0xa4, 0x48, - 0x42, 0x5a, 0x4c, 0x23, 0xc5, 0xd1, 0xea, 0x72, 0xd9, 0x24, 0x97, 0xc1, 0x77, 0x11, 0x70, 0xf1, - 0x2d, 0x03, 0x1e, 0x06, 0x43, 0x3e, 0x1d, 0x60, 0xed, 0xef, 0x15, 0xbc, 0x54, 0x8b, 0xbb, 0x76, - 0x93, 0xae, 0xce, 0x5f, 0x08, 0xbf, 0xde, 0x81, 0x5e, 0x44, 0x7d, 0xaf, 0x1d, 0x09, 0xd2, 0xf3, - 0xa1, 0x2b, 0x88, 0x00, 0xa7, 0x5a, 0x34, 0x50, 0x29, 0x6a, 0xc8, 0x4e, 0x32, 0xf0, 0xf2, 0x76, - 0xfe, 0x80, 0xc4, 0xf8, 0xbd, 0x82, 0xf3, 0x0f, 0xc2, 0x6f, 0xec, 0x02, 0xef, 0x33, 0xda, 0x83, - 0x8c, 0x9d, 0x59, 0xb8, 0x0e, 0x95, 0x7a, 0xb5, 0x05, 0x12, 0x94, 0x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 0x0a, 0xd3, 0x43, 0x49, 0x07, 0xdb, 0x1e, 0x4a, 0xfa, 0x8c, 0xcc, 0xf3, 0x61, 0x13, 0x44, 0xfc, - 0xef, 0xfd, 0x08, 0x22, 0xb0, 0x79, 0x3e, 0x9c, 0xe3, 0xec, 0x9e, 0x0f, 0x35, 0xb8, 0xd4, 0xda, - 0xf1, 0xcf, 0x2f, 0xdd, 0xc2, 0xc5, 0xa5, 0x5b, 0xb8, 0xbe, 0x74, 0xd1, 0x8f, 0x13, 0x17, 0xfd, - 0x37, 0x71, 0xd1, 0xe3, 0x89, 0x8b, 0xce, 0x27, 0x2e, 0x7a, 0x32, 0x71, 0xd1, 0xd3, 0x89, 0x5b, - 0xb8, 0x9e, 0xb8, 0xe8, 0xb7, 0x2b, 0xb7, 0x70, 0x7e, 0xe5, 0x16, 0x2e, 0xae, 0xdc, 0xc2, 0x37, - 0xeb, 0xc7, 0xc1, 0xed, 0xc8, 0x34, 0xb8, 0xe3, 0xad, 0x50, 0x25, 0xfd, 0xb9, 0xf7, 0xc2, 0xcd, - 0x2b, 0xa1, 0xf7, 0x9f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x41, 0x2d, 0x62, 0x07, 0xa8, 0x12, 0x00, - 0x00, + // 935 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x98, 0x5f, 0x6b, 0x2b, 0x45, + 0x18, 0x87, 0x33, 0x0a, 0x22, 0xc3, 0xf1, 0xe8, 0xd9, 0x73, 0x10, 0x3d, 0x17, 0xab, 0xa8, 0xd7, + 0x09, 0x3d, 0xea, 0xd1, 0x93, 0x1c, 0x4f, 0x9a, 0xa6, 0x31, 0x05, 0x13, 0xb5, 0x49, 0xad, 0xe0, + 0x8d, 0x4c, 0xb2, 0x6f, 0xdb, 0xa1, 0x9b, 0xec, 0x3a, 0x33, 0x9b, 0xda, 0xab, 0x7a, 0x23, 0x14, + 0x84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1, 0x16, 0x03, 0xbe, 0x23, + 0x4f, 0x59, 0x36, 0x47, 0x77, 0x1d, 0x6a, 0x77, 0x74, 0xd7, 0x27, 0xcc, 0x6c, 0x4a, 0x1c, 0xc6, + 0xde, 0xdc, 0xe5, 0xc2, 0x74, 0x53, 0xd2, 0xc1, 0xb6, 0x9b, 0x92, 0x3e, 0x43, 0x59, 0xfe, 0x88, + 0xf0, 0x9d, 0x36, 0x88, 0xf8, 0xdf, 0xeb, 0x11, 0x44, 0x60, 0x73, 0x57, 0x9c, 0xe3, 0xec, 0xee, + 0x8a, 0x1a, 0x5c, 0x6a, 0xad, 0xf8, 0x27, 0x67, 0x6e, 0xe9, 0xf4, 0xcc, 0x2d, 0x5d, 0x9c, 0xb9, + 0xe8, 0x9b, 0xa9, 0x8b, 0x7e, 0x9b, 0xba, 0xe8, 0x9f, 0xa9, 0x8b, 0x4e, 0xa6, 0x2e, 0xfa, 0x77, + 0xea, 0xa2, 0xff, 0xa6, 0x6e, 0xe9, 0x62, 0xea, 0xa2, 0xef, 0xcf, 0xdd, 0xd2, 0xc9, 0xb9, 0x5b, + 0x3a, 0x3d, 0x77, 0x4b, 0x5f, 0x3c, 0xdc, 0x0e, 0xae, 0x46, 0xa6, 0xc1, 0x35, 0x6f, 0xad, 0x6a, + 0xd9, 0xcf, 0x83, 0xe7, 0x2e, 0x5f, 0x59, 0xbd, 0xfd, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xea, + 0xd7, 0x20, 0x78, 0x48, 0x13, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -135,6 +137,8 @@ type AdminServiceClient interface { DescribeHistoryHost(ctx context.Context, in *DescribeHistoryHostRequest, opts ...grpc.CallOption) (*DescribeHistoryHostResponse, error) GetShard(ctx context.Context, in *GetShardRequest, opts ...grpc.CallOption) (*GetShardResponse, error) CloseShard(ctx context.Context, in *CloseShardRequest, opts ...grpc.CallOption) (*CloseShardResponse, error) + ListHistoryTasks(ctx context.Context, in *ListHistoryTasksRequest, opts ...grpc.CallOption) (*ListHistoryTasksResponse, error) + // TODO: remove following four list tasks rpc ListTransferTasks(ctx context.Context, in *ListTransferTasksRequest, opts ...grpc.CallOption) (*ListTransferTasksResponse, error) ListTimerTasks(ctx context.Context, in *ListTimerTasksRequest, opts ...grpc.CallOption) (*ListTimerTasksResponse, error) ListReplicationTasks(ctx context.Context, in *ListReplicationTasksRequest, opts ...grpc.CallOption) (*ListReplicationTasksResponse, error) @@ -238,6 +242,16 @@ func (c *adminServiceClient) CloseShard(ctx context.Context, in *CloseShardReque return out, nil } +func (c *adminServiceClient) ListHistoryTasks(ctx context.Context, in *ListHistoryTasksRequest, opts ...grpc.CallOption) (*ListHistoryTasksResponse, error) { + out := new(ListHistoryTasksResponse) + err := c.cc.Invoke(ctx, "/temporal.server.api.adminservice.v1.AdminService/ListHistoryTasks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. func (c *adminServiceClient) ListTransferTasks(ctx context.Context, in *ListTransferTasksRequest, opts ...grpc.CallOption) (*ListTransferTasksResponse, error) { out := new(ListTransferTasksResponse) err := c.cc.Invoke(ctx, "/temporal.server.api.adminservice.v1.AdminService/ListTransferTasks", in, out, opts...) @@ -247,6 +261,7 @@ func (c *adminServiceClient) ListTransferTasks(ctx context.Context, in *ListTran return out, nil } +// Deprecated: Do not use. func (c *adminServiceClient) ListTimerTasks(ctx context.Context, in *ListTimerTasksRequest, opts ...grpc.CallOption) (*ListTimerTasksResponse, error) { out := new(ListTimerTasksResponse) err := c.cc.Invoke(ctx, "/temporal.server.api.adminservice.v1.AdminService/ListTimerTasks", in, out, opts...) @@ -256,6 +271,7 @@ func (c *adminServiceClient) ListTimerTasks(ctx context.Context, in *ListTimerTa return out, nil } +// Deprecated: Do not use. func (c *adminServiceClient) ListReplicationTasks(ctx context.Context, in *ListReplicationTasksRequest, opts ...grpc.CallOption) (*ListReplicationTasksResponse, error) { out := new(ListReplicationTasksResponse) err := c.cc.Invoke(ctx, "/temporal.server.api.adminservice.v1.AdminService/ListReplicationTasks", in, out, opts...) @@ -265,6 +281,7 @@ func (c *adminServiceClient) ListReplicationTasks(ctx context.Context, in *ListR return out, nil } +// Deprecated: Do not use. func (c *adminServiceClient) ListVisibilityTasks(ctx context.Context, in *ListVisibilityTasksRequest, opts ...grpc.CallOption) (*ListVisibilityTasksResponse, error) { out := new(ListVisibilityTasksResponse) err := c.cc.Invoke(ctx, "/temporal.server.api.adminservice.v1.AdminService/ListVisibilityTasks", in, out, opts...) @@ -465,6 +482,8 @@ type AdminServiceServer interface { DescribeHistoryHost(context.Context, *DescribeHistoryHostRequest) (*DescribeHistoryHostResponse, error) GetShard(context.Context, *GetShardRequest) (*GetShardResponse, error) CloseShard(context.Context, *CloseShardRequest) (*CloseShardResponse, error) + ListHistoryTasks(context.Context, *ListHistoryTasksRequest) (*ListHistoryTasksResponse, error) + // TODO: remove following four list tasks rpc ListTransferTasks(context.Context, *ListTransferTasksRequest) (*ListTransferTasksResponse, error) ListTimerTasks(context.Context, *ListTimerTasksRequest) (*ListTimerTasksResponse, error) ListReplicationTasks(context.Context, *ListReplicationTasksRequest) (*ListReplicationTasksResponse, error) @@ -534,6 +553,9 @@ func (*UnimplementedAdminServiceServer) GetShard(ctx context.Context, req *GetSh func (*UnimplementedAdminServiceServer) CloseShard(ctx context.Context, req *CloseShardRequest) (*CloseShardResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CloseShard not implemented") } +func (*UnimplementedAdminServiceServer) ListHistoryTasks(ctx context.Context, req *ListHistoryTasksRequest) (*ListHistoryTasksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListHistoryTasks not implemented") +} func (*UnimplementedAdminServiceServer) ListTransferTasks(ctx context.Context, req *ListTransferTasksRequest) (*ListTransferTasksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListTransferTasks not implemented") } @@ -701,6 +723,24 @@ func _AdminService_CloseShard_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _AdminService_ListHistoryTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListHistoryTasksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListHistoryTasks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.server.api.adminservice.v1.AdminService/ListHistoryTasks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListHistoryTasks(ctx, req.(*ListHistoryTasksRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _AdminService_ListTransferTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListTransferTasksRequest) if err := dec(in); err != nil { @@ -1157,6 +1197,10 @@ var _AdminService_serviceDesc = grpc.ServiceDesc{ MethodName: "CloseShard", Handler: _AdminService_CloseShard_Handler, }, + { + MethodName: "ListHistoryTasks", + Handler: _AdminService_ListHistoryTasks_Handler, + }, { MethodName: "ListTransferTasks", Handler: _AdminService_ListTransferTasks_Handler, diff --git a/api/adminservicemock/v1/service.pb.mock.go b/api/adminservicemock/v1/service.pb.mock.go index 4dfc1de4466..71146a079de 100644 --- a/api/adminservicemock/v1/service.pb.mock.go +++ b/api/adminservicemock/v1/service.pb.mock.go @@ -380,6 +380,26 @@ func (mr *MockAdminServiceClientMockRecorder) ListClusters(ctx, in interface{}, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClusters", reflect.TypeOf((*MockAdminServiceClient)(nil).ListClusters), varargs...) } +// ListHistoryTasks mocks base method. +func (m *MockAdminServiceClient) ListHistoryTasks(ctx context.Context, in *adminservice.ListHistoryTasksRequest, opts ...grpc.CallOption) (*adminservice.ListHistoryTasksResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHistoryTasks", varargs...) + ret0, _ := ret[0].(*adminservice.ListHistoryTasksResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHistoryTasks indicates an expected call of ListHistoryTasks. +func (mr *MockAdminServiceClientMockRecorder) ListHistoryTasks(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHistoryTasks", reflect.TypeOf((*MockAdminServiceClient)(nil).ListHistoryTasks), varargs...) +} + // ListReplicationTasks mocks base method. func (m *MockAdminServiceClient) ListReplicationTasks(ctx context.Context, in *adminservice.ListReplicationTasksRequest, opts ...grpc.CallOption) (*adminservice.ListReplicationTasksResponse, error) { m.ctrl.T.Helper() @@ -903,6 +923,21 @@ func (mr *MockAdminServiceServerMockRecorder) ListClusters(arg0, arg1 interface{ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClusters", reflect.TypeOf((*MockAdminServiceServer)(nil).ListClusters), arg0, arg1) } +// ListHistoryTasks mocks base method. +func (m *MockAdminServiceServer) ListHistoryTasks(arg0 context.Context, arg1 *adminservice.ListHistoryTasksRequest) (*adminservice.ListHistoryTasksResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHistoryTasks", arg0, arg1) + ret0, _ := ret[0].(*adminservice.ListHistoryTasksResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHistoryTasks indicates an expected call of ListHistoryTasks. +func (mr *MockAdminServiceServerMockRecorder) ListHistoryTasks(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHistoryTasks", reflect.TypeOf((*MockAdminServiceServer)(nil).ListHistoryTasks), arg0, arg1) +} + // ListReplicationTasks mocks base method. func (m *MockAdminServiceServer) ListReplicationTasks(arg0 context.Context, arg1 *adminservice.ListReplicationTasksRequest) (*adminservice.ListReplicationTasksResponse, error) { m.ctrl.T.Helper() diff --git a/api/history/v1/message.pb.go b/api/history/v1/message.pb.go index 961945fc6ff..aa5e416077e 100644 --- a/api/history/v1/message.pb.go +++ b/api/history/v1/message.pb.go @@ -35,8 +35,12 @@ import ( math_bits "math/bits" reflect "reflect" strings "strings" + time "time" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + _ "github.com/gogo/protobuf/types" + github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" v1 "go.temporal.io/api/history/v1" ) @@ -44,6 +48,7 @@ import ( var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +var _ = time.Kitchen // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -258,11 +263,115 @@ func (m *VersionHistories) GetHistories() []*VersionHistory { return nil } +type TaskKey struct { + TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + FireTime *time.Time `protobuf:"bytes,2,opt,name=fire_time,json=fireTime,proto3,stdtime" json:"fire_time,omitempty"` +} + +func (m *TaskKey) Reset() { *m = TaskKey{} } +func (*TaskKey) ProtoMessage() {} +func (*TaskKey) Descriptor() ([]byte, []int) { + return fileDescriptor_670cd05c700ece14, []int{4} +} +func (m *TaskKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TaskKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TaskKey.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TaskKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskKey.Merge(m, src) +} +func (m *TaskKey) XXX_Size() int { + return m.Size() +} +func (m *TaskKey) XXX_DiscardUnknown() { + xxx_messageInfo_TaskKey.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskKey proto.InternalMessageInfo + +func (m *TaskKey) GetTaskId() int64 { + if m != nil { + return m.TaskId + } + return 0 +} + +func (m *TaskKey) GetFireTime() *time.Time { + if m != nil { + return m.FireTime + } + return nil +} + +type TaskRange struct { + InclusiveMinTaskKey *TaskKey `protobuf:"bytes,1,opt,name=inclusive_min_task_key,json=inclusiveMinTaskKey,proto3" json:"inclusive_min_task_key,omitempty"` + ExclusiveMaxTaskKey *TaskKey `protobuf:"bytes,2,opt,name=exclusive_max_task_key,json=exclusiveMaxTaskKey,proto3" json:"exclusive_max_task_key,omitempty"` +} + +func (m *TaskRange) Reset() { *m = TaskRange{} } +func (*TaskRange) ProtoMessage() {} +func (*TaskRange) Descriptor() ([]byte, []int) { + return fileDescriptor_670cd05c700ece14, []int{5} +} +func (m *TaskRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TaskRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TaskRange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TaskRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskRange.Merge(m, src) +} +func (m *TaskRange) XXX_Size() int { + return m.Size() +} +func (m *TaskRange) XXX_DiscardUnknown() { + xxx_messageInfo_TaskRange.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskRange proto.InternalMessageInfo + +func (m *TaskRange) GetInclusiveMinTaskKey() *TaskKey { + if m != nil { + return m.InclusiveMinTaskKey + } + return nil +} + +func (m *TaskRange) GetExclusiveMaxTaskKey() *TaskKey { + if m != nil { + return m.ExclusiveMaxTaskKey + } + return nil +} + func init() { proto.RegisterType((*TransientWorkflowTaskInfo)(nil), "temporal.server.api.history.v1.TransientWorkflowTaskInfo") proto.RegisterType((*VersionHistoryItem)(nil), "temporal.server.api.history.v1.VersionHistoryItem") proto.RegisterType((*VersionHistory)(nil), "temporal.server.api.history.v1.VersionHistory") proto.RegisterType((*VersionHistories)(nil), "temporal.server.api.history.v1.VersionHistories") + proto.RegisterType((*TaskKey)(nil), "temporal.server.api.history.v1.TaskKey") + proto.RegisterType((*TaskRange)(nil), "temporal.server.api.history.v1.TaskRange") } func init() { @@ -270,34 +379,44 @@ func init() { } var fileDescriptor_670cd05c700ece14 = []byte{ - // 422 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x6a, 0xd4, 0x40, - 0x1c, 0xc6, 0x33, 0x5d, 0x6a, 0x75, 0x76, 0xad, 0x32, 0xa7, 0x6d, 0xc1, 0xa1, 0x06, 0x0a, 0x3d, - 0x94, 0x09, 0x5d, 0x8f, 0x9e, 0x14, 0x84, 0x46, 0xc4, 0x43, 0x58, 0x14, 0xbc, 0x84, 0xd9, 0xcd, - 0xbf, 0xcd, 0xb0, 0x9b, 0x99, 0x30, 0x33, 0x8d, 0x7a, 0x10, 0x7c, 0x04, 0xdf, 0xc1, 0x8b, 0x6f, - 0xe0, 0x2b, 0x78, 0xdc, 0x63, 0x8f, 0x6e, 0xf6, 0xe2, 0xb1, 0x8f, 0x20, 0x99, 0xcc, 0xa6, 0xac, - 0x96, 0x42, 0x6f, 0xf3, 0x4d, 0xbe, 0xff, 0xef, 0xfb, 0xc2, 0xfc, 0xf1, 0xb1, 0x85, 0xa2, 0x54, - 0x9a, 0xcf, 0x23, 0x03, 0xba, 0x02, 0x1d, 0xf1, 0x52, 0x44, 0xb9, 0x30, 0x56, 0xe9, 0xcf, 0x51, - 0x75, 0x12, 0x15, 0x60, 0x0c, 0x3f, 0x07, 0x56, 0x6a, 0x65, 0x15, 0xa1, 0x6b, 0x37, 0x6b, 0xdd, - 0x8c, 0x97, 0x82, 0x79, 0x37, 0xab, 0x4e, 0xf6, 0x0f, 0x3b, 0xda, 0x6d, 0x98, 0xf0, 0x27, 0xc2, - 0x7b,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0xed, 0x64, 0xdf, 0x9b, 0xfe, 0xa1, 0x37, 0x0e, 0xf2, 0x06, - 0x3f, 0xc8, 0xd7, 0x3c, 0xdf, 0x92, 0xdd, 0xad, 0x65, 0x72, 0x0d, 0x78, 0x39, 0x59, 0x2c, 0x69, - 0x70, 0xb9, 0xa4, 0xc1, 0xd5, 0x92, 0xa2, 0xaf, 0x35, 0x45, 0x3f, 0x6a, 0x8a, 0x7e, 0xd5, 0x14, - 0x2d, 0x6a, 0x8a, 0x7e, 0xd7, 0x14, 0xfd, 0xa9, 0x69, 0x70, 0x55, 0x53, 0xf4, 0x6d, 0x45, 0x83, - 0xc5, 0x8a, 0x06, 0x97, 0x2b, 0x1a, 0x7c, 0x38, 0x3e, 0x57, 0xd7, 0x91, 0x42, 0xdd, 0xbc, 0xda, - 0xcf, 0xfd, 0x71, 0x72, 0xcf, 0x2d, 0xe5, 0xb3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb1, 0xc0, - 0xb3, 0x54, 0x0b, 0x03, 0x00, 0x00, + // 580 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x41, 0x4f, 0x13, 0x41, + 0x14, 0xc7, 0x3b, 0x20, 0x14, 0x06, 0x44, 0x33, 0x26, 0x08, 0x4d, 0x1c, 0xa0, 0x09, 0x91, 0x03, + 0x99, 0x0d, 0x78, 0x34, 0x1e, 0x24, 0x31, 0xa1, 0x2a, 0x1e, 0x36, 0x8d, 0x26, 0x86, 0x64, 0x33, + 0xed, 0xbe, 0x6e, 0x27, 0xed, 0xce, 0x34, 0x33, 0xd3, 0x5a, 0x0e, 0x26, 0x7e, 0x04, 0xbe, 0x83, + 0x17, 0xbf, 0x81, 0x1f, 0x41, 0x8f, 0x1c, 0xb9, 0x29, 0xcb, 0xc5, 0x23, 0x1f, 0xc1, 0xec, 0xec, + 0x74, 0x1b, 0xd4, 0x60, 0xb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0xbc, 0x47, 0xc8, 0x65, 0x02, 0xe4, 0x18, 0xaf, 0x0a, 0xd9, 0xee, 0x0f, 0x8d, 0x18, 0x41, 0x94, + 0x0a, 0x19, 0xb9, 0x9e, 0x3d, 0x38, 0xf1, 0x3b, 0xf8, 0xf8, 0x7f, 0xb3, 0x78, 0xbb, 0xe1, 0x83, + 0x12, 0x73, 0x24, 0xe4, 0x64, 0x86, 0x63, 0xbc, 0x0a, 0xe3, 0x92, 0xce, 0xc7, 0x53, 0xfa, 0xcc, + 0x2d, 0xe9, 0x25, 0xe6, 0x88, 0x8f, 0x7d, 0xf2, 0xa0, 0x75, 0x76, 0x41, 0x2b, 0xe7, 0x17, 0xb4, + 0x72, 0x75, 0x41, 0xd1, 0xa7, 0x8c, 0xa2, 0x2f, 0x19, 0x45, 0xdf, 0x33, 0x8a, 0xce, 0x32, 0x8a, + 0x7e, 0x66, 0x14, 0xfd, 0xca, 0x68, 0xe5, 0x2a, 0xa3, 0xe8, 0xf4, 0x92, 0x56, 0xce, 0x2e, 0x69, + 0xe5, 0xfc, 0x92, 0x56, 0xde, 0xef, 0x26, 0x6a, 0xda, 0x55, 0xa8, 0x7f, 0xff, 0x4b, 0x9e, 0xfa, + 0x63, 0x6b, 0xde, 0xdd, 0xe8, 0x93, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x61, 0xd5, 0x83, + 0x7c, 0x04, 0x00, 0x00, } func (this *TransientWorkflowTaskInfo) Equal(that interface{}) bool { @@ -418,6 +537,64 @@ func (this *VersionHistories) Equal(that interface{}) bool { } return true } +func (this *TaskKey) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TaskKey) + if !ok { + that2, ok := that.(TaskKey) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TaskId != that1.TaskId { + return false + } + if that1.FireTime == nil { + if this.FireTime != nil { + return false + } + } else if !this.FireTime.Equal(*that1.FireTime) { + return false + } + return true +} +func (this *TaskRange) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TaskRange) + if !ok { + that2, ok := that.(TaskRange) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.InclusiveMinTaskKey.Equal(that1.InclusiveMinTaskKey) { + return false + } + if !this.ExclusiveMaxTaskKey.Equal(that1.ExclusiveMaxTaskKey) { + return false + } + return true +} func (this *TransientWorkflowTaskInfo) GoString() string { if this == nil { return "nil" @@ -470,6 +647,32 @@ func (this *VersionHistories) GoString() string { s = append(s, "}") return strings.Join(s, "") } +func (this *TaskKey) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&history.TaskKey{") + s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") + s = append(s, "FireTime: "+fmt.Sprintf("%#v", this.FireTime)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *TaskRange) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&history.TaskRange{") + if this.InclusiveMinTaskKey != nil { + s = append(s, "InclusiveMinTaskKey: "+fmt.Sprintf("%#v", this.InclusiveMinTaskKey)+",\n") + } + if this.ExclusiveMaxTaskKey != nil { + s = append(s, "ExclusiveMaxTaskKey: "+fmt.Sprintf("%#v", this.ExclusiveMaxTaskKey)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} func valueToGoStringMessage(v interface{}, typ string) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -644,6 +847,91 @@ func (m *VersionHistories) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *TaskKey) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TaskKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TaskKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FireTime != nil { + n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.FireTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.FireTime):]) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintMessage(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x12 + } + if m.TaskId != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.TaskId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TaskRange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TaskRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TaskRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ExclusiveMaxTaskKey != nil { + { + size, err := m.ExclusiveMaxTaskKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.InclusiveMinTaskKey != nil { + { + size, err := m.InclusiveMinTaskKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintMessage(dAtA []byte, offset int, v uint64) int { offset -= sovMessage(v) base := offset @@ -724,6 +1012,39 @@ func (m *VersionHistories) Size() (n int) { return n } +func (m *TaskKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TaskId != 0 { + n += 1 + sovMessage(uint64(m.TaskId)) + } + if m.FireTime != nil { + l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.FireTime) + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *TaskRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InclusiveMinTaskKey != nil { + l = m.InclusiveMinTaskKey.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if m.ExclusiveMaxTaskKey != nil { + l = m.ExclusiveMaxTaskKey.Size() + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + func sovMessage(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -784,6 +1105,28 @@ func (this *VersionHistories) String() string { }, "") return s } +func (this *TaskKey) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TaskKey{`, + `TaskId:` + fmt.Sprintf("%v", this.TaskId) + `,`, + `FireTime:` + strings.Replace(fmt.Sprintf("%v", this.FireTime), "Timestamp", "types.Timestamp", 1) + `,`, + `}`, + }, "") + return s +} +func (this *TaskRange) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TaskRange{`, + `InclusiveMinTaskKey:` + strings.Replace(this.InclusiveMinTaskKey.String(), "TaskKey", "TaskKey", 1) + `,`, + `ExclusiveMaxTaskKey:` + strings.Replace(this.ExclusiveMaxTaskKey.String(), "TaskKey", "TaskKey", 1) + `,`, + `}`, + }, "") + return s +} func valueToStringMessage(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -1235,6 +1578,239 @@ func (m *VersionHistories) Unmarshal(dAtA []byte) error { } return nil } +func (m *TaskKey) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TaskKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + m.TaskId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TaskId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FireTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FireTime == nil { + m.FireTime = new(time.Time) + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.FireTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TaskRange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TaskRange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskRange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InclusiveMinTaskKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InclusiveMinTaskKey == nil { + m.InclusiveMinTaskKey = &TaskKey{} + } + if err := m.InclusiveMinTaskKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExclusiveMaxTaskKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExclusiveMaxTaskKey == nil { + m.ExclusiveMaxTaskKey = &TaskKey{} + } + if err := m.ExclusiveMaxTaskKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipMessage(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/client/admin/client.go b/client/admin/client.go index a7673fbce4b..9a318a08a56 100644 --- a/client/admin/client.go +++ b/client/admin/client.go @@ -161,6 +161,20 @@ func (c *clientImpl) GetShard( return client.GetShard(ctx, request, opts...) } +func (c *clientImpl) ListHistoryTasks( + ctx context.Context, + request *adminservice.ListHistoryTasksRequest, + opts ...grpc.CallOption, +) (*adminservice.ListHistoryTasksResponse, error) { + client, err := c.getRandomClient() + if err != nil { + return nil, err + } + ctx, cancel := c.createContext(ctx) + defer cancel() + return client.ListHistoryTasks(ctx, request, opts...) +} + func (c *clientImpl) ListTimerTasks( ctx context.Context, request *adminservice.ListTimerTasksRequest, diff --git a/client/admin/metricClient.go b/client/admin/metricClient.go index b1ca087b780..830ce3f4019 100644 --- a/client/admin/metricClient.go +++ b/client/admin/metricClient.go @@ -174,6 +174,23 @@ func (c *metricClient) GetShard( return resp, err } +func (c *metricClient) ListHistoryTasks( + ctx context.Context, + request *adminservice.ListHistoryTasksRequest, + opts ...grpc.CallOption, +) (*adminservice.ListHistoryTasksResponse, error) { + c.metricsClient.IncCounter(metrics.AdminClientListHistoryTasksScope, metrics.ClientRequests) + + sw := c.metricsClient.StartTimer(metrics.AdminClientListHistoryTasksScope, metrics.ClientLatency) + resp, err := c.client.ListHistoryTasks(ctx, request, opts...) + sw.Stop() + + if err != nil { + c.metricsClient.IncCounter(metrics.AdminClientListHistoryTasksScope, metrics.ClientFailures) + } + return resp, err +} + func (c *metricClient) ListTimerTasks( ctx context.Context, request *adminservice.ListTimerTasksRequest, diff --git a/client/admin/retryableClient.go b/client/admin/retryableClient.go index 273e9b97242..c38e4f60607 100644 --- a/client/admin/retryableClient.go +++ b/client/admin/retryableClient.go @@ -162,6 +162,22 @@ func (c *retryableClient) GetShard( return resp, err } +func (c *retryableClient) ListHistoryTasks( + ctx context.Context, + request *adminservice.ListHistoryTasksRequest, + opts ...grpc.CallOption, +) (*adminservice.ListHistoryTasksResponse, error) { + + var resp *adminservice.ListHistoryTasksResponse + op := func() error { + var err error + resp, err = c.client.ListHistoryTasks(ctx, request, opts...) + return err + } + err := backoff.Retry(op, c.policy, c.isRetryable) + return resp, err +} + func (c *retryableClient) ListTimerTasks( ctx context.Context, request *adminservice.ListTimerTasksRequest, diff --git a/common/metrics/defs.go b/common/metrics/defs.go index 91ceee1b8ad..9bf0c68ba38 100644 --- a/common/metrics/defs.go +++ b/common/metrics/defs.go @@ -526,6 +526,8 @@ const ( AdminClientCloseShardScope // AdminClientGetShardScope tracks RPC calls to admin service AdminClientGetShardScope + // AdminClientListHistoryTasksScope tracks RPC calls to admin service + AdminClientListHistoryTasksScope // AdminClientListTransferTasksScope tracks RPC calls to admin service AdminClientListTransferTasksScope // AdminClientListTimerTasksScope tracks RPC calls to admin service @@ -768,6 +770,8 @@ const ( AdminCloseShardScope // AdminGetShardScope is the metric scope for admin.AdminGetShardScope AdminGetShardScope + // AdminListHistoryTasksScope is the metric scope for admin.ListHistoryTasksScope + AdminListHistoryTasksScope // AdminListTransferTasksScope is the metric scope for admin.ListTransferTasksScope AdminListTransferTasksScope // AdminListTimerTasksScope is the metric scope for admin.ListTimerTasksScope @@ -1432,6 +1436,7 @@ var ScopeDefs = map[ServiceIdx]map[int]scopeDefinition{ AdminClientListClusterMembersScope: {operation: "AdminClientListClusterMembers", tags: map[string]string{ServiceRoleTagName: AdminRoleTagValue}}, AdminClientCloseShardScope: {operation: "AdminClientCloseShard", tags: map[string]string{ServiceRoleTagName: AdminRoleTagValue}}, AdminClientGetShardScope: {operation: "AdminClientGetShard", tags: map[string]string{ServiceRoleTagName: AdminRoleTagValue}}, + AdminClientListHistoryTasksScope: {operation: "AdminClientListHistoryTasks", tags: map[string]string{ServiceRoleTagName: AdminRoleTagValue}}, AdminClientListTransferTasksScope: {operation: "AdminClientListTransferTasks", tags: map[string]string{ServiceRoleTagName: AdminRoleTagValue}}, AdminClientListTimerTasksScope: {operation: "AdminClientListTimerTasks", tags: map[string]string{ServiceRoleTagName: AdminRoleTagValue}}, AdminClientListReplicationTasksScope: {operation: "AdminClientListReplicationTasks", tags: map[string]string{ServiceRoleTagName: AdminRoleTagValue}}, @@ -1515,6 +1520,7 @@ var ScopeDefs = map[ServiceIdx]map[int]scopeDefinition{ AdminRemoveTaskScope: {operation: "AdminRemoveTask"}, AdminCloseShardScope: {operation: "AdminCloseShard"}, AdminGetShardScope: {operation: "AdminGetShard"}, + AdminListHistoryTasksScope: {operation: "AdminListHistoryTasks"}, AdminListTransferTasksScope: {operation: "AdminListTransferTasks"}, AdminListTimerTasksScope: {operation: "AdminListTimerTasks"}, AdminListReplicationTasksScope: {operation: "AdminListReplicationTasks"}, diff --git a/common/persistence/execution_manager.go b/common/persistence/execution_manager.go index 22989572667..fcf8d43dffc 100644 --- a/common/persistence/execution_manager.go +++ b/common/persistence/execution_manager.go @@ -1009,14 +1009,14 @@ func validateTaskRange( switch taskCategoryType { case tasks.CategoryTypeImmediate: if !maxTaskIDSpecified { - serviceerror.NewInvalidArgument("invalid task range, max taskID must be specified for immediate task category") + return serviceerror.NewInvalidArgument("invalid task range, max taskID must be specified for immediate task category") } if minFireTimeSpecified || maxFireTimeSpecified { return serviceerror.NewInvalidArgument("invalid task range, fireTime must be empty for immediate task category") } case tasks.CategoryTypeScheduled: if !maxFireTimeSpecified { - serviceerror.NewInvalidArgument("invalid task range, max fire time must be specified for scheduled task category") + return serviceerror.NewInvalidArgument("invalid task range, max fire time must be specified for scheduled task category") } if minTaskIDSpecified || maxTaskIDSpecified { return serviceerror.NewInvalidArgument("invalid task range, taskID must be empty for scheduled task category") diff --git a/proto/internal/temporal/server/api/adminservice/v1/request_response.proto b/proto/internal/temporal/server/api/adminservice/v1/request_response.proto index f3580edd55f..59c0da40cb7 100644 --- a/proto/internal/temporal/server/api/adminservice/v1/request_response.proto +++ b/proto/internal/temporal/server/api/adminservice/v1/request_response.proto @@ -102,7 +102,21 @@ message GetShardResponse { temporal.server.api.persistence.v1.ShardInfo shard_info = 1; } -message ListTransferTasksRequest{ +message ListHistoryTasksRequest { + int32 shard_id = 1; + temporal.server.api.enums.v1.TaskCategory category = 2; + temporal.server.api.history.v1.TaskRange task_range = 3; + int32 batch_size = 4; + bytes next_page_token = 5; +} + +message ListHistoryTasksResponse { + repeated Task tasks = 1; + bytes next_page_token = 2; +} + +message ListTransferTasksRequest{ + option deprecated = true; int32 shard_id = 1; int64 min_task_id = 2; int64 max_task_id = 4; @@ -111,11 +125,13 @@ message ListTransferTasksRequest{ } message ListTransferTasksResponse { + option deprecated = true; repeated Task tasks = 1; bytes next_page_token = 2; } message ListVisibilityTasksRequest{ + option deprecated = true; int32 shard_id = 1; int64 read_level = 2; int64 max_read_level = 4; @@ -124,11 +140,13 @@ message ListVisibilityTasksRequest{ } message ListVisibilityTasksResponse { + option deprecated = true; repeated Task tasks = 1; bytes next_page_token = 2; } message ListTimerTasksRequest{ + option deprecated = true; int32 shard_id = 1; google.protobuf.Timestamp min_time = 2 [(gogoproto.stdtime) = true]; google.protobuf.Timestamp max_time = 3 [(gogoproto.stdtime) = true]; @@ -138,11 +156,13 @@ message ListTimerTasksRequest{ message ListTimerTasksResponse { + option deprecated = true; repeated Task tasks = 1; bytes next_page_token = 2; } message ListReplicationTasksRequest { + option deprecated = true; int32 shard_id = 1; int64 min_task_id = 2; int64 max_task_id = 3; @@ -151,6 +171,7 @@ message ListReplicationTasksRequest { } message ListReplicationTasksResponse { + option deprecated = true; repeated Task tasks = 1; bytes next_page_token = 2; } diff --git a/proto/internal/temporal/server/api/adminservice/v1/service.proto b/proto/internal/temporal/server/api/adminservice/v1/service.proto index 6bdf1afb766..e526a728845 100644 --- a/proto/internal/temporal/server/api/adminservice/v1/service.proto +++ b/proto/internal/temporal/server/api/adminservice/v1/service.proto @@ -46,16 +46,24 @@ service AdminService { rpc CloseShard (CloseShardRequest) returns (CloseShardResponse) { } + rpc ListHistoryTasks (ListHistoryTasksRequest) returns (ListHistoryTasksResponse) { + } + + // TODO: remove following four list tasks rpc rpc ListTransferTasks (ListTransferTasksRequest) returns (ListTransferTasksResponse) { + option deprecated = true; } rpc ListTimerTasks (ListTimerTasksRequest) returns (ListTimerTasksResponse) { + option deprecated = true; } rpc ListReplicationTasks (ListReplicationTasksRequest) returns (ListReplicationTasksResponse) { + option deprecated = true; } rpc ListVisibilityTasks (ListVisibilityTasksRequest) returns (ListVisibilityTasksResponse) { + option deprecated = true; } rpc RemoveTask (RemoveTaskRequest) returns (RemoveTaskResponse) { diff --git a/proto/internal/temporal/server/api/history/v1/message.proto b/proto/internal/temporal/server/api/history/v1/message.proto index 3023fc50239..ec787b53f81 100644 --- a/proto/internal/temporal/server/api/history/v1/message.proto +++ b/proto/internal/temporal/server/api/history/v1/message.proto @@ -24,6 +24,10 @@ package temporal.server.api.history.v1; option go_package = "go.temporal.io/server/api/history/v1;history"; +import "google/protobuf/timestamp.proto"; + +import "dependencies/gogoproto/gogo.proto"; + import "temporal/api/history/v1/message.proto"; message TransientWorkflowTaskInfo { @@ -48,3 +52,13 @@ message VersionHistories { int32 current_version_history_index = 1; repeated VersionHistory histories = 2; } + +message TaskKey { + int64 task_id = 1; + google.protobuf.Timestamp fire_time = 2 [(gogoproto.stdtime) = true]; +} + +message TaskRange { + TaskKey inclusive_min_task_key = 1; + TaskKey exclusive_max_task_key = 2; +} diff --git a/service/frontend/adminHandler.go b/service/frontend/adminHandler.go index 0774ae5afff..0710daa10fb 100644 --- a/service/frontend/adminHandler.go +++ b/service/frontend/adminHandler.go @@ -529,9 +529,74 @@ func (adh *AdminHandler) CloseShard(ctx context.Context, request *adminservice.C return &adminservice.CloseShardResponse{}, err } -// TODO: consolidate into one ListShardTasks API and the range in request should be [inclusive, exclusive) for all task categories -// Currently for transfer, replication, and visibility tasks the range in the request is (exclusive, inclusive], so add 1 when -// calling persistence layer. +func (adh *AdminHandler) ListHistoryTasks( + ctx context.Context, + request *adminservice.ListHistoryTasksRequest, +) (_ *adminservice.ListHistoryTasksResponse, retError error) { + defer log.CapturePanic(adh.logger, &retError) + + scope, sw := adh.startRequestProfile(metrics.AdminListHistoryTasksScope) + defer sw.Stop() + + if request == nil { + return nil, adh.error(errRequestNotSet, scope) + } + taskRange := request.GetTaskRange() + if taskRange == nil { + return nil, adh.error(errTaskRangeNotSet, scope) + } + + taskCategory, ok := tasks.GetCategoryByID(int32(request.Category)) + if !ok { + return nil, adh.error(&serviceerror.InvalidArgument{ + Message: fmt.Sprintf("unknown task category: %v", request.Category), + }, scope) + } + + var minTaskKey, maxTaskKey tasks.Key + if taskRange.InclusiveMinTaskKey != nil { + minTaskKey.FireTime = timestamp.TimeValue(taskRange.InclusiveMinTaskKey.FireTime) + minTaskKey.TaskID = taskRange.InclusiveMinTaskKey.TaskId + } + if taskRange.ExclusiveMaxTaskKey != nil { + maxTaskKey.FireTime = timestamp.TimeValue(taskRange.ExclusiveMaxTaskKey.FireTime) + maxTaskKey.TaskID = taskRange.ExclusiveMaxTaskKey.TaskId + } + resp, err := adh.persistenceExecutionManager.GetHistoryTasks(&persistence.GetHistoryTasksRequest{ + ShardID: request.ShardId, + TaskCategory: taskCategory, + InclusiveMinTaskKey: minTaskKey, + ExclusiveMaxTaskKey: maxTaskKey, + BatchSize: int(request.BatchSize), + NextPageToken: request.NextPageToken, + }) + if err != nil { + return nil, adh.error(err, scope) + } + + return &adminservice.ListHistoryTasksResponse{ + Tasks: toAdminTask(resp.Tasks), + NextPageToken: resp.NextPageToken, + }, nil +} + +func toAdminTask(tasks []tasks.Task) []*adminservice.Task { + var adminTasks []*adminservice.Task + for _, task := range tasks { + adminTasks = append(adminTasks, &adminservice.Task{ + NamespaceId: task.GetNamespaceID(), + WorkflowId: task.GetWorkflowID(), + RunId: task.GetRunID(), + TaskId: task.GetTaskID(), + TaskType: task.GetType(), + FireTime: timestamp.TimePtr(task.GetKey().FireTime), + Version: task.GetVersion(), + }) + } + return adminTasks +} + +// TODO: remove following four list tasks methods // ListTimerTasks lists timer tasks for a given shard func (adh *AdminHandler) ListTimerTasks(ctx context.Context, request *adminservice.ListTimerTasksRequest) (_ *adminservice.ListTimerTasksResponse, retError error) { @@ -558,30 +623,14 @@ func (adh *AdminHandler) ListTimerTasks(ctx context.Context, request *adminservi BatchSize: int(request.GetBatchSize()), NextPageToken: request.GetNextPageToken(), }) - - var timerTasks []*adminservice.Task - for _, task := range resp.Tasks { - fireTime := task.GetKey().FireTime - taskType, err := getTaskType(task) - if err != nil { - return nil, err - } - - timerTasks = append(timerTasks, &adminservice.Task{ - NamespaceId: task.GetNamespaceID(), - WorkflowId: task.GetWorkflowID(), - RunId: task.GetRunID(), - TaskId: task.GetTaskID(), - TaskType: taskType, - FireTime: &fireTime, - Version: task.GetVersion(), - }) + if err != nil { + return nil, adh.error(err, scope) } return &adminservice.ListTimerTasksResponse{ - Tasks: timerTasks, + Tasks: toAdminTask(resp.Tasks), NextPageToken: resp.NextPageToken, - }, err + }, nil } // ListReplicationTasks lists replication tasks for a given shard @@ -609,30 +658,14 @@ func (adh *AdminHandler) ListReplicationTasks(ctx context.Context, request *admi BatchSize: int(request.GetBatchSize()), NextPageToken: request.GetNextPageToken(), }) - - var tasks []*adminservice.Task - for _, task := range resp.Tasks { - fireTime := time.Unix(0, 0) - taskType, err := getTaskType(task) - if err != nil { - return nil, err - } - - tasks = append(tasks, &adminservice.Task{ - NamespaceId: task.GetNamespaceID(), - WorkflowId: task.GetWorkflowID(), - RunId: task.GetRunID(), - TaskId: task.GetTaskID(), - TaskType: taskType, - FireTime: &fireTime, - Version: task.GetVersion(), - }) + if err != nil { + return nil, adh.error(err, scope) } return &adminservice.ListReplicationTasksResponse{ - Tasks: tasks, + Tasks: toAdminTask(resp.Tasks), NextPageToken: resp.NextPageToken, - }, err + }, nil } // ListTransferTasks lists transfer tasks for a given shard @@ -660,30 +693,14 @@ func (adh *AdminHandler) ListTransferTasks(ctx context.Context, request *adminse BatchSize: int(request.GetBatchSize()), NextPageToken: request.GetNextPageToken(), }) - - var tasks []*adminservice.Task - for _, task := range resp.Tasks { - fireTime := time.Unix(0, 0) - taskType, err := getTaskType(task) - if err != nil { - return nil, err - } - - tasks = append(tasks, &adminservice.Task{ - NamespaceId: task.GetNamespaceID(), - WorkflowId: task.GetWorkflowID(), - RunId: task.GetRunID(), - TaskId: task.GetTaskID(), - TaskType: taskType, - FireTime: &fireTime, - Version: task.GetVersion(), - }) + if err != nil { + return nil, adh.error(err, scope) } return &adminservice.ListTransferTasksResponse{ - Tasks: tasks, + Tasks: toAdminTask(resp.Tasks), NextPageToken: resp.NextPageToken, - }, err + }, nil } // ListVisibilityTasks lists visibility tasks for a given shard @@ -711,30 +728,14 @@ func (adh *AdminHandler) ListVisibilityTasks(ctx context.Context, request *admin BatchSize: int(request.GetBatchSize()), NextPageToken: request.GetNextPageToken(), }) - - var tasks []*adminservice.Task - for _, task := range resp.Tasks { - fireTime := time.Unix(0, 0) - taskType, err := getTaskType(task) - if err != nil { - return nil, err - } - - tasks = append(tasks, &adminservice.Task{ - NamespaceId: task.GetNamespaceID(), - WorkflowId: task.GetWorkflowID(), - RunId: task.GetRunID(), - TaskId: task.GetTaskID(), - TaskType: taskType, - FireTime: &fireTime, - Version: task.GetVersion(), - }) + if err != nil { + return nil, adh.error(err, scope) } return &adminservice.ListVisibilityTasksResponse{ - Tasks: tasks, + Tasks: toAdminTask(resp.Tasks), NextPageToken: resp.NextPageToken, - }, err + }, nil } // DescribeHistoryHost returns information about the internal states of a history host @@ -1567,6 +1568,7 @@ func (adh *AdminHandler) ResendReplicationTasks( } // GetTaskQueueTasks returns tasks from task queue +// TODO: support pagination func (adh *AdminHandler) GetTaskQueueTasks( ctx context.Context, request *adminservice.GetTaskQueueTasksRequest, @@ -1584,19 +1586,14 @@ func (adh *AdminHandler) GetTaskQueueTasks( return nil, adh.error(err, scope) } - taskMgr := adh.taskManager - - maxTaskID := request.GetMaxTaskId() - req := &persistence.GetTasksRequest{ + resp, err := adh.taskManager.GetTasks(&persistence.GetTasksRequest{ NamespaceID: namespaceID.String(), TaskQueue: request.GetTaskQueue(), TaskType: request.GetTaskQueueType(), MinTaskIDExclusive: request.GetMinTaskId(), - MaxTaskIDInclusive: maxTaskID, + MaxTaskIDInclusive: request.GetMaxTaskId(), PageSize: int(request.GetBatchSize()), - } - - resp, err := taskMgr.GetTasks(req) + }) if err != nil { return nil, adh.error(err, scope) } @@ -1780,59 +1777,3 @@ func (adh *AdminHandler) error(err error, scope metrics.Scope) error { return err } - -func getTaskType(task tasks.Task) (enumsspb.TaskType, error) { - var taskType enumsspb.TaskType - switch task := task.(type) { - // Replication - case *tasks.HistoryReplicationTask: - taskType = enumsspb.TASK_TYPE_REPLICATION_HISTORY - case *tasks.SyncActivityTask: - taskType = enumsspb.TASK_TYPE_REPLICATION_SYNC_ACTIVITY - // Transfer - case *tasks.WorkflowTask: - taskType = enumsspb.TASK_TYPE_TRANSFER_WORKFLOW_TASK - case *tasks.ActivityTask: - taskType = enumsspb.TASK_TYPE_TRANSFER_ACTIVITY_TASK - case *tasks.CloseExecutionTask: - taskType = enumsspb.TASK_TYPE_TRANSFER_CLOSE_EXECUTION - case *tasks.CancelExecutionTask: - taskType = enumsspb.TASK_TYPE_TRANSFER_CANCEL_EXECUTION - case *tasks.StartChildExecutionTask: - taskType = enumsspb.TASK_TYPE_TRANSFER_START_CHILD_EXECUTION - case *tasks.SignalExecutionTask: - taskType = enumsspb.TASK_TYPE_TRANSFER_SIGNAL_EXECUTION - case *tasks.ResetWorkflowTask: - taskType = enumsspb.TASK_TYPE_TRANSFER_RESET_WORKFLOW - case *tasks.DeleteExecutionTask: - taskType = enumsspb.TASK_TYPE_TRANSFER_DELETE_EXECUTION - // Timer - case *tasks.WorkflowTaskTimeoutTask: - taskType = enumsspb.TASK_TYPE_WORKFLOW_TASK_TIMEOUT - case *tasks.ActivityTimeoutTask: - taskType = enumsspb.TASK_TYPE_ACTIVITY_TIMEOUT - case *tasks.UserTimerTask: - taskType = enumsspb.TASK_TYPE_USER_TIMER - case *tasks.WorkflowTimeoutTask: - taskType = enumsspb.TASK_TYPE_WORKFLOW_RUN_TIMEOUT - case *tasks.DeleteHistoryEventTask: - taskType = enumsspb.TASK_TYPE_DELETE_HISTORY_EVENT - case *tasks.ActivityRetryTimerTask: - taskType = enumsspb.TASK_TYPE_ACTIVITY_RETRY_TIMER - case *tasks.WorkflowBackoffTimerTask: - taskType = enumsspb.TASK_TYPE_WORKFLOW_BACKOFF_TIMER - // Visibility - case *tasks.StartExecutionVisibilityTask: - taskType = enumsspb.TASK_TYPE_VISIBILITY_START_EXECUTION - case *tasks.UpsertExecutionVisibilityTask: - taskType = enumsspb.TASK_TYPE_VISIBILITY_UPSERT_EXECUTION - case *tasks.CloseExecutionVisibilityTask: - taskType = enumsspb.TASK_TYPE_VISIBILITY_CLOSE_EXECUTION - case *tasks.DeleteExecutionVisibilityTask: - taskType = enumsspb.TASK_TYPE_VISIBILITY_DELETE_EXECUTION - default: - return 0, serviceerror.NewInternal(fmt.Sprintf("Unknown task type: %v", task)) - } - - return taskType, nil -} diff --git a/service/frontend/errors.go b/service/frontend/errors.go index 55e6b57f2ea..b47374335f9 100644 --- a/service/frontend/errors.go +++ b/service/frontend/errors.go @@ -48,6 +48,7 @@ var ( errQueryDisallowedForNamespace = serviceerror.NewInvalidArgument("Namespace is not allowed to query, please contact temporal team to re-enable queries.") errClusterNameNotSet = serviceerror.NewInvalidArgument("Cluster name is not set.") errEmptyReplicationInfo = serviceerror.NewInvalidArgument("Replication task info is not set.") + errTaskRangeNotSet = serviceerror.NewInvalidArgument("Task range is not set") errHistoryNotFound = serviceerror.NewInvalidArgument("Requested workflow history not found, may have passed retention period.") errNamespaceTooLong = serviceerror.NewInvalidArgument("Namespace length exceeds limit.") errWorkflowTypeTooLong = serviceerror.NewInvalidArgument("WorkflowType length exceeds limit.") diff --git a/service/history/taskProcessor_test.go b/service/history/taskProcessor_test.go index 06e82b8d20e..df085cfac97 100644 --- a/service/history/taskProcessor_test.go +++ b/service/history/taskProcessor_test.go @@ -36,6 +36,7 @@ import ( "github.com/stretchr/testify/suite" "go.temporal.io/api/serviceerror" + enumspb "go.temporal.io/server/api/enums/v1" persistencespb "go.temporal.io/server/api/persistence/v1" "go.temporal.io/server/common/log" "go.temporal.io/server/common/metrics" @@ -311,3 +312,4 @@ func (t *taskForTest) SetVersion(_ int64) { panic("implement me") } func (t *taskForTest) SetTaskID(_ int64) { panic("implement me") } func (t *taskForTest) SetVisibilityTime(_ time.Time) { panic("implement me") } func (t *taskForTest) GetCategory() tasks.Category { panic("implement me") } +func (t *taskForTest) GetType() enumspb.TaskType { panic("implement me") } diff --git a/service/history/tasks/activity_replication_task.go b/service/history/tasks/activity_replication_task.go index a74523261cf..5e145c3366a 100644 --- a/service/history/tasks/activity_replication_task.go +++ b/service/history/tasks/activity_replication_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -76,3 +77,7 @@ func (a *SyncActivityTask) SetVisibilityTime(timestamp time.Time) { func (a *SyncActivityTask) GetCategory() Category { return CategoryReplication } + +func (a *SyncActivityTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_REPLICATION_SYNC_ACTIVITY +} diff --git a/service/history/tasks/activity_retry_timer.go b/service/history/tasks/activity_retry_timer.go index 91c062773ce..45b1be97a73 100644 --- a/service/history/tasks/activity_retry_timer.go +++ b/service/history/tasks/activity_retry_timer.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -77,3 +78,7 @@ func (r *ActivityRetryTimerTask) SetVisibilityTime(t time.Time) { func (r *ActivityRetryTimerTask) GetCategory() Category { return CategoryTimer } + +func (r *ActivityRetryTimerTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_ACTIVITY_RETRY_TIMER +} diff --git a/service/history/tasks/activity_task.go b/service/history/tasks/activity_task.go index 6a97268c18e..6e2c909d8d8 100644 --- a/service/history/tasks/activity_task.go +++ b/service/history/tasks/activity_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -78,3 +79,7 @@ func (a *ActivityTask) SetVisibilityTime(timestamp time.Time) { func (a *ActivityTask) GetCategory() Category { return CategoryTransfer } + +func (a *ActivityTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_TRANSFER_ACTIVITY_TASK +} diff --git a/service/history/tasks/activity_task_timer.go b/service/history/tasks/activity_task_timer.go index 4fda4d5a573..29a24981756 100644 --- a/service/history/tasks/activity_task_timer.go +++ b/service/history/tasks/activity_task_timer.go @@ -29,6 +29,7 @@ import ( enumspb "go.temporal.io/api/enums/v1" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -80,3 +81,7 @@ func (a *ActivityTimeoutTask) SetVisibilityTime(t time.Time) { func (a *ActivityTimeoutTask) GetCategory() Category { return CategoryTimer } + +func (a *ActivityTimeoutTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_ACTIVITY_TIMEOUT +} diff --git a/service/history/tasks/category.go b/service/history/tasks/category.go index fffa4bc301f..e6fcc9155cb 100644 --- a/service/history/tasks/category.go +++ b/service/history/tasks/category.go @@ -28,6 +28,8 @@ import ( "fmt" "strconv" "sync" + + enumsspb "go.temporal.io/server/api/enums/v1" ) type ( @@ -41,11 +43,11 @@ type ( ) const ( - CategoryIDUnspecified int32 = iota - CategoryIDTransfer - CategoryIDTimer - CategoryIDVisibility - CategoryIDReplication + CategoryIDUnspecified = int32(enumsspb.TASK_CATEGORY_UNSPECIFIED) + CategoryIDTransfer = int32(enumsspb.TASK_CATEGORY_TRANSFER) + CategoryIDTimer = int32(enumsspb.TASK_CATEGORY_TIMER) + CategoryIDReplication = int32(enumsspb.TASK_CATEGORY_REPLICATION) + CategoryIDVisibility = int32(enumsspb.TASK_CATEGORY_VISIBILITY) ) const ( @@ -57,8 +59,8 @@ const ( const ( CategoryNameTransfer = "transfer" CategoryNameTimer = "timer" - CategoryNameVisibility = "visibility" CategoryNameReplication = "replication" + CategoryNameVisibility = "visibility" ) var ( @@ -74,17 +76,17 @@ var ( name: CategoryNameTimer, } - CategoryVisibility = Category{ - id: CategoryIDVisibility, - cType: CategoryTypeImmediate, - name: CategoryNameVisibility, - } - CategoryReplication = Category{ id: CategoryIDReplication, cType: CategoryTypeImmediate, name: CategoryNameReplication, } + + CategoryVisibility = Category{ + id: CategoryIDVisibility, + cType: CategoryTypeImmediate, + name: CategoryNameVisibility, + } ) var ( diff --git a/service/history/tasks/child_workflow_task.go b/service/history/tasks/child_workflow_task.go index 0e4cabccb17..27e9c90c73f 100644 --- a/service/history/tasks/child_workflow_task.go +++ b/service/history/tasks/child_workflow_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -78,3 +79,7 @@ func (u *StartChildExecutionTask) SetVisibilityTime(timestamp time.Time) { func (u *StartChildExecutionTask) GetCategory() Category { return CategoryTransfer } + +func (u *StartChildExecutionTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_TRANSFER_START_CHILD_EXECUTION +} diff --git a/service/history/tasks/close_task.go b/service/history/tasks/close_task.go index 0ceae5ca8f2..e99b61d950a 100644 --- a/service/history/tasks/close_task.go +++ b/service/history/tasks/close_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -75,3 +76,7 @@ func (a *CloseExecutionTask) SetVisibilityTime(timestamp time.Time) { func (a *CloseExecutionTask) GetCategory() Category { return CategoryTransfer } + +func (a *CloseExecutionTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_TRANSFER_CLOSE_EXECUTION +} diff --git a/service/history/tasks/close_visibility_task.go b/service/history/tasks/close_visibility_task.go index 7046d27b099..067fb5c57b8 100644 --- a/service/history/tasks/close_visibility_task.go +++ b/service/history/tasks/close_visibility_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -75,3 +76,7 @@ func (t *CloseExecutionVisibilityTask) SetVisibilityTime(timestamp time.Time) { func (t *CloseExecutionVisibilityTask) GetCategory() Category { return CategoryVisibility } + +func (t *CloseExecutionVisibilityTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_VISIBILITY_CLOSE_EXECUTION +} diff --git a/service/history/tasks/delete_execution_task.go b/service/history/tasks/delete_execution_task.go index df77d62eefe..1c69658dbc5 100644 --- a/service/history/tasks/delete_execution_task.go +++ b/service/history/tasks/delete_execution_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -75,3 +76,7 @@ func (a *DeleteExecutionTask) SetVisibilityTime(timestamp time.Time) { func (a *DeleteExecutionTask) GetCategory() Category { return CategoryTransfer } + +func (a *DeleteExecutionTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_TRANSFER_DELETE_EXECUTION +} diff --git a/service/history/tasks/delete_visibility_task.go b/service/history/tasks/delete_visibility_task.go index e3dadf090d0..c0243506417 100644 --- a/service/history/tasks/delete_visibility_task.go +++ b/service/history/tasks/delete_visibility_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -76,3 +77,7 @@ func (t *DeleteExecutionVisibilityTask) SetVisibilityTime(timestamp time.Time) { func (t *DeleteExecutionVisibilityTask) GetCategory() Category { return CategoryVisibility } + +func (t *DeleteExecutionVisibilityTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_VISIBILITY_DELETE_EXECUTION +} diff --git a/service/history/tasks/fake_task.go b/service/history/tasks/fake_task.go index 37a6cabd0eb..970c2458a41 100644 --- a/service/history/tasks/fake_task.go +++ b/service/history/tasks/fake_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common" "go.temporal.io/server/common/definition" ) @@ -87,3 +88,7 @@ func (f *fakeTask) SetVisibilityTime(t time.Time) { func (f *fakeTask) GetCategory() Category { return f.Category } + +func (f *fakeTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_UNSPECIFIED +} diff --git a/service/history/tasks/history_replication_task.go b/service/history/tasks/history_replication_task.go index 7a7969c0561..a9f37358aa9 100644 --- a/service/history/tasks/history_replication_task.go +++ b/service/history/tasks/history_replication_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -79,3 +80,7 @@ func (a *HistoryReplicationTask) SetVisibilityTime(timestamp time.Time) { func (a *HistoryReplicationTask) GetCategory() Category { return CategoryReplication } + +func (a *HistoryReplicationTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_REPLICATION_HISTORY +} diff --git a/service/history/tasks/requst_cancel_task.go b/service/history/tasks/requst_cancel_task.go index 59f779fb995..f8f18bf1e08 100644 --- a/service/history/tasks/requst_cancel_task.go +++ b/service/history/tasks/requst_cancel_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -80,3 +81,7 @@ func (u *CancelExecutionTask) SetVisibilityTime(timestamp time.Time) { func (u *CancelExecutionTask) GetCategory() Category { return CategoryTransfer } + +func (u *CancelExecutionTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_TRANSFER_CANCEL_EXECUTION +} diff --git a/service/history/tasks/reset_task.go b/service/history/tasks/reset_task.go index 2fd9efce4d7..092834adcd5 100644 --- a/service/history/tasks/reset_task.go +++ b/service/history/tasks/reset_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -75,3 +76,7 @@ func (a *ResetWorkflowTask) SetVisibilityTime(timestamp time.Time) { func (a *ResetWorkflowTask) GetCategory() Category { return CategoryTransfer } + +func (a *ResetWorkflowTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_TRANSFER_RESET_WORKFLOW +} diff --git a/service/history/tasks/signal_task.go b/service/history/tasks/signal_task.go index c85c618a1c9..68548e92b60 100644 --- a/service/history/tasks/signal_task.go +++ b/service/history/tasks/signal_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -80,3 +81,7 @@ func (u *SignalExecutionTask) SetVisibilityTime(timestamp time.Time) { func (u *SignalExecutionTask) GetCategory() Category { return CategoryTransfer } + +func (u *SignalExecutionTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_TRANSFER_SIGNAL_EXECUTION +} diff --git a/service/history/tasks/start_visibility_task.go b/service/history/tasks/start_visibility_task.go index 1f9365eb631..67c63f1559b 100644 --- a/service/history/tasks/start_visibility_task.go +++ b/service/history/tasks/start_visibility_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -75,3 +76,7 @@ func (t *StartExecutionVisibilityTask) SetVisibilityTime(timestamp time.Time) { func (t *StartExecutionVisibilityTask) GetCategory() Category { return CategoryVisibility } + +func (t *StartExecutionVisibilityTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_VISIBILITY_START_EXECUTION +} diff --git a/service/history/tasks/task.go b/service/history/tasks/task.go index c2ccb3970bd..330c5d6e07a 100644 --- a/service/history/tasks/task.go +++ b/service/history/tasks/task.go @@ -26,6 +26,8 @@ package tasks import ( "time" + + enumsspb "go.temporal.io/server/api/enums/v1" ) type ( @@ -48,6 +50,7 @@ type ( GetVisibilityTime() time.Time GetVersion() int64 GetCategory() Category + GetType() enumsspb.TaskType SetVersion(version int64) SetTaskID(id int64) diff --git a/service/history/tasks/upsert_visibility_task.go b/service/history/tasks/upsert_visibility_task.go index 844d5155852..04dfc6417ae 100644 --- a/service/history/tasks/upsert_visibility_task.go +++ b/service/history/tasks/upsert_visibility_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -77,3 +78,7 @@ func (t *UpsertExecutionVisibilityTask) SetVisibilityTime(timestamp time.Time) { func (t *UpsertExecutionVisibilityTask) GetCategory() Category { return CategoryVisibility } + +func (t *UpsertExecutionVisibilityTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_VISIBILITY_UPSERT_EXECUTION +} diff --git a/service/history/tasks/user_timer.go b/service/history/tasks/user_timer.go index 86c116b0d4f..9a5704fb3ed 100644 --- a/service/history/tasks/user_timer.go +++ b/service/history/tasks/user_timer.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -76,3 +77,7 @@ func (u *UserTimerTask) SetVisibilityTime(t time.Time) { func (u *UserTimerTask) GetCategory() Category { return CategoryTimer } + +func (u *UserTimerTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_USER_TIMER +} diff --git a/service/history/tasks/workflow_cleanup_timer.go b/service/history/tasks/workflow_cleanup_timer.go index 0c9c38f592b..b58e13ffc07 100644 --- a/service/history/tasks/workflow_cleanup_timer.go +++ b/service/history/tasks/workflow_cleanup_timer.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -75,3 +76,7 @@ func (a *DeleteHistoryEventTask) SetVisibilityTime(timestamp time.Time) { func (a *DeleteHistoryEventTask) GetCategory() Category { return CategoryTimer } + +func (a *DeleteHistoryEventTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_DELETE_HISTORY_EVENT +} diff --git a/service/history/tasks/workflow_delay_timer.go b/service/history/tasks/workflow_delay_timer.go index eec5a8f7b30..a8ee28861e6 100644 --- a/service/history/tasks/workflow_delay_timer.go +++ b/service/history/tasks/workflow_delay_timer.go @@ -77,3 +77,7 @@ func (r *WorkflowBackoffTimerTask) SetVisibilityTime(t time.Time) { func (r *WorkflowBackoffTimerTask) GetCategory() Category { return CategoryTimer } + +func (r *WorkflowBackoffTimerTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_WORKFLOW_BACKOFF_TIMER +} diff --git a/service/history/tasks/workflow_task.go b/service/history/tasks/workflow_task.go index ff54462e91d..49e17cfbd92 100644 --- a/service/history/tasks/workflow_task.go +++ b/service/history/tasks/workflow_task.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -77,3 +78,7 @@ func (d *WorkflowTask) SetVisibilityTime(timestamp time.Time) { func (d *WorkflowTask) GetCategory() Category { return CategoryTransfer } + +func (d *WorkflowTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_TRANSFER_WORKFLOW_TASK +} diff --git a/service/history/tasks/workflow_task_timer.go b/service/history/tasks/workflow_task_timer.go index 97f74a199f3..c6017d7d307 100644 --- a/service/history/tasks/workflow_task_timer.go +++ b/service/history/tasks/workflow_task_timer.go @@ -29,6 +29,7 @@ import ( enumspb "go.temporal.io/api/enums/v1" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -80,3 +81,7 @@ func (d *WorkflowTaskTimeoutTask) SetVisibilityTime(t time.Time) { func (d *WorkflowTaskTimeoutTask) GetCategory() Category { return CategoryTimer } + +func (d *WorkflowTaskTimeoutTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_WORKFLOW_TASK_TIMEOUT +} diff --git a/service/history/tasks/workflow_timer.go b/service/history/tasks/workflow_timer.go index e66dc12a204..147c3652138 100644 --- a/service/history/tasks/workflow_timer.go +++ b/service/history/tasks/workflow_timer.go @@ -27,6 +27,7 @@ package tasks import ( "time" + enumsspb "go.temporal.io/server/api/enums/v1" "go.temporal.io/server/common/definition" ) @@ -72,6 +73,10 @@ func (u *WorkflowTimeoutTask) SetVisibilityTime(t time.Time) { u.VisibilityTimestamp = t } -func (a *WorkflowTimeoutTask) GetCategory() Category { +func (u *WorkflowTimeoutTask) GetCategory() Category { return CategoryTimer } + +func (u *WorkflowTimeoutTask) GetType() enumsspb.TaskType { + return enumsspb.TASK_TYPE_WORKFLOW_RUN_TIMEOUT +} diff --git a/tools/cli/admin.go b/tools/cli/admin.go index d4266bf1730..30e5380dd82 100644 --- a/tools/cli/admin.go +++ b/tools/cli/admin.go @@ -38,11 +38,6 @@ func newAdminWorkflowCommands() []cli.Command { Aliases: []string{"show"}, Usage: "show workflow history from database", Flags: []cli.Flag{ - cli.StringFlag{ - Name: FlagNamespace, - Usage: "Namespace of the workflow", - Value: "default", - }, cli.StringFlag{ Name: FlagWorkflowIDWithAlias, Usage: "WorkflowId", @@ -191,34 +186,42 @@ func newAdminShardManagementCommands() []cli.Command { Usage: "List tasks for given shard Id and task type", Flags: append( flagsForPagination, - cli.StringFlag{ - Name: FlagTargetCluster, - Value: "active", - Usage: "Temporal cluster to use", - }, cli.IntFlag{ - Name: FlagShardID, - Usage: "The ID of the shard", + Name: FlagShardID, + Usage: "The ID of the shard", + Required: true, }, cli.StringFlag{ - Name: FlagTaskType, - Value: "transfer", - Usage: "Task type: transfer (default), timer, replication, visibility", + Name: FlagTaskType, + Usage: "Task type: transfer, timer, replication, visibility", + Required: true, + }, + cli.Int64Flag{ + Name: FlagMinTaskID, + Usage: "Inclusive min taskID. Optional for transfer, replication, visibility tasks. Can't be specified for timer task", + }, + cli.Int64Flag{ + Name: FlagMaxTaskID, + Usage: "Exclusive max taskID. Required for transfer, replication, visibility tasks. Can't be specified for timer task", }, cli.StringFlag{ - Name: FlagMinVisibilityTimestamp, - Value: "2020-01-01T00:00:00+00:00", - Usage: "Task visibility min timestamp. Supported formats are '2006-01-02T15:04:05+07:00', raw UnixNano and " + + Name: FlagMinVisibilityTimestamp, + Usage: "Inclusive min task fire timestamp. Optional for timer task. Can't be specified for transfer, replication, visibility tasks." + + "Supported formats are '2006-01-02T15:04:05+07:00', raw UnixNano and " + "time range (N), where 0 < N < 1000000 and duration (full-notation/short-notation) can be second/s, " + "minute/m, hour/h, day/d, week/w, month/M or year/y. For example, '15minute' or '15m' implies last 15 minutes.", }, cli.StringFlag{ - Name: FlagMaxVisibilityTimestamp, - Value: "2035-01-01T00:00:00+00:00", - Usage: "Task visibility max timestamp. Supported formats are '2006-01-02T15:04:05+07:00', raw UnixNano and " + + Name: FlagMaxVisibilityTimestamp, + Usage: "Exclusive max task fire timestamp. Required for timer task. Can't be specified for transfer, replication, visibility tasks." + + "Supported formats are '2006-01-02T15:04:05+07:00', raw UnixNano and " + "time range (N), where 0 < N < 1000000 and duration (full-notation/short-notation) can be second/s, " + "minute/m, hour/h, day/d, week/w, month/M or year/y. For example, '15minute' or '15m' implies last 15 minutes.", }, + cli.BoolFlag{ + Name: FlagPrintJSONWithAlias, + Usage: "Print in raw json format", + }, ), Action: func(c *cli.Context) { AdminListShardTasks(c) @@ -385,12 +388,8 @@ func newAdminTaskQueueCommands() []cli.Command { { Name: "list_tasks", Usage: "List tasks of a task queue", - Flags: []cli.Flag{ - cli.StringFlag{ - Name: FlagNamespace, - Usage: "Namespace name", - Value: "default", - }, + Flags: append( + flagsForPagination, cli.StringFlag{ Name: FlagTaskQueueType, Value: "activity", @@ -409,7 +408,11 @@ func newAdminTaskQueueCommands() []cli.Command { Name: FlagMaxTaskID, Usage: "Maximum task Id", }, - }, + cli.BoolFlag{ + Name: FlagPrintJSONWithAlias, + Usage: "Print in raw json format", + }, + ), Action: func(c *cli.Context) { AdminListTaskQueueTasks(c) }, diff --git a/tools/cli/adminCommands.go b/tools/cli/adminCommands.go index 0b549a20062..f377fac56fa 100644 --- a/tools/cli/adminCommands.go +++ b/tools/cli/adminCommands.go @@ -40,6 +40,7 @@ import ( historypb "go.temporal.io/api/history/v1" "go.temporal.io/server/api/adminservice/v1" enumsspb "go.temporal.io/server/api/enums/v1" + "go.temporal.io/server/api/history/v1" persistencespb "go.temporal.io/server/api/persistence/v1" "go.temporal.io/server/common" "go.temporal.io/server/common/auth" @@ -64,7 +65,7 @@ const maxEventID = 9999 // AdminShowWorkflow shows history func AdminShowWorkflow(c *cli.Context) { - namespace := c.String(FlagNamespace) + namespace := getRequiredGlobalOption(c, FlagNamespace) wid := getRequiredOption(c, FlagWorkflowID) rid := getRequiredOption(c, FlagRunID) startEventId := c.Int64(FlagMinEventID) @@ -391,28 +392,26 @@ func AdminGetShardID(c *cli.Context) { func AdminDescribeTask(c *cli.Context) { sid := int32(getRequiredIntOption(c, FlagShardID)) tid := getRequiredIntOption(c, FlagTaskID) - categoryInt, err := stringToEnum(c.String(FlagTaskType), enumsspb.TaskCategory_value) - if err != nil { - ErrorAndExit("Failed to parse Task Type", err) - } - category := enumsspb.TaskCategory(categoryInt) - if category == enumsspb.TASK_CATEGORY_UNSPECIFIED { - ErrorAndExit(fmt.Sprintf("Task type %s is currently not supported", category), nil) - } - - pFactory := CreatePersistenceFactory(c) - executionManager, err := pFactory.NewExecutionManager() + categoryStr := getRequiredOption(c, FlagTaskType) + categoryValue, err := stringToEnum(categoryStr, enumsspb.TaskCategory_value) if err != nil { - ErrorAndExit("Failed to initialize execution manager", err) + categoryInt, err := strconv.Atoi(categoryStr) + if err != nil { + ErrorAndExit("Failed to parse task type", err) + } + categoryValue = int32(categoryInt) } + category := enumsspb.TaskCategory(categoryValue) var historyTaskCategory tasks.Category - vis := getRequiredInt64Option(c, FlagTaskVisibilityTimestamp) + vis := c.Int64(FlagTaskVisibilityTimestamp) taskKey := tasks.Key{ TaskID: int64(tid), FireTime: time.Unix(0, vis).UTC(), } switch category { + case enumsspb.TASK_CATEGORY_UNSPECIFIED: + ErrorAndExit("Task type is unspecified", nil) case enumsspb.TASK_CATEGORY_TIMER: historyTaskCategory = tasks.CategoryTimer case enumsspb.TASK_CATEGORY_REPLICATION: @@ -422,9 +421,24 @@ func AdminDescribeTask(c *cli.Context) { case enumsspb.TASK_CATEGORY_VISIBILITY: historyTaskCategory = tasks.CategoryReplication default: - ErrorAndExit("Failed to describe task", fmt.Errorf("Unrecognized task type, task_type=%v", category)) + categoryType := tasks.CategoryTypeImmediate + if !taskKey.FireTime.IsZero() { + categoryType = tasks.CategoryTypeScheduled + } + historyTaskCategory = tasks.NewCategory( + int32(category), + categoryType, + "", + ) } + // TODO: probably create an admin API for describe task + // current result doesn't have task type information + pFactory := CreatePersistenceFactory(c) + executionManager, err := pFactory.NewExecutionManager() + if err != nil { + ErrorAndExit("Failed to initialize execution manager", err) + } task, err := executionManager.GetHistoryTask(&persistence.GetHistoryTaskRequest{ ShardID: int32(sid), TaskCategory: historyTaskCategory, @@ -440,98 +454,59 @@ func AdminDescribeTask(c *cli.Context) { // AdminListShardTasks outputs a list of a tasks for given Shard and Task Category func AdminListShardTasks(c *cli.Context) { sid := int32(getRequiredIntOption(c, FlagShardID)) - categoryInt, err := stringToEnum(c.String(FlagTaskType), enumsspb.TaskCategory_value) + categoryStr := getRequiredOption(c, FlagTaskType) + categoryValue, err := stringToEnum(categoryStr, enumsspb.TaskCategory_value) if err != nil { - ErrorAndExit("Failed to parse Task Type", err) + categoryInt, err := strconv.Atoi(categoryStr) + if err != nil { + ErrorAndExit("Failed to parse task type", err) + } + categoryValue = int32(categoryInt) } - category := enumsspb.TaskCategory(categoryInt) + category := enumsspb.TaskCategory(categoryValue) if category == enumsspb.TASK_CATEGORY_UNSPECIFIED { - ErrorAndExit(fmt.Sprintf("Task type %s is currently not supported", category), nil) + ErrorAndExit("Task type is unspecified", nil) } client := cFactory.AdminClient(c) + pageSize := defaultPageSize + if c.IsSet(FlagPageSize) { + pageSize = c.Int(FlagPageSize) + } + req := &adminservice.ListHistoryTasksRequest{ + ShardId: sid, + Category: category, + TaskRange: &history.TaskRange{ + InclusiveMinTaskKey: &history.TaskKey{ + FireTime: timestamp.TimePtr(parseTime(c.String(FlagMinVisibilityTimestamp), time.Time{}, time.Now().UTC())), + TaskId: c.Int64(FlagMinTaskID), + }, + ExclusiveMaxTaskKey: &history.TaskKey{ + FireTime: timestamp.TimePtr(parseTime(c.String(FlagMaxVisibilityTimestamp), time.Time{}, time.Now().UTC())), + TaskId: c.Int64(FlagMaxTaskID), + }, + }, + BatchSize: int32(pageSize), + } ctx, cancel := newContext(c) defer cancel() - if category == enumsspb.TASK_CATEGORY_TRANSFER { - req := &adminservice.ListTransferTasksRequest{ShardId: sid} - - paginationFunc := func(paginationToken []byte) ([]interface{}, []byte, error) { - req.NextPageToken = paginationToken - response, err := client.ListTransferTasks(ctx, req) - if err != nil { - return nil, nil, err - } - token := response.NextPageToken - - var items []interface{} - for _, task := range response.Tasks { - items = append(items, task) - } - return items, token, nil - } - paginate(c, paginationFunc) - } else if category == enumsspb.TASK_CATEGORY_VISIBILITY { - req := &adminservice.ListVisibilityTasksRequest{ShardId: sid} - - paginationFunc := func(paginationToken []byte) ([]interface{}, []byte, error) { - req.NextPageToken = paginationToken - response, err := client.ListVisibilityTasks(ctx, req) - if err != nil { - return nil, nil, err - } - token := response.NextPageToken - - var items []interface{} - for _, task := range response.Tasks { - items = append(items, task) - } - return items, token, nil - } - paginate(c, paginationFunc) - } else if category == enumsspb.TASK_CATEGORY_TIMER { - minVis := parseTime(c.String(FlagMinVisibilityTimestamp), time.Time{}, time.Now().UTC()) - maxVis := parseTime(c.String(FlagMaxVisibilityTimestamp), time.Time{}, time.Now().UTC()) - - req := &adminservice.ListTimerTasksRequest{ - ShardId: sid, - MinTime: &minVis, - MaxTime: &maxVis, - } - paginationFunc := func(paginationToken []byte) ([]interface{}, []byte, error) { - req.NextPageToken = paginationToken - response, err := client.ListTimerTasks(ctx, req) - if err != nil { - return nil, nil, err - } - token := response.NextPageToken - - var items []interface{} - for _, task := range response.Tasks { - items = append(items, task) - } - return items, token, nil + paginationFunc := func(paginationToken []byte) ([]interface{}, []byte, error) { + req.NextPageToken = paginationToken + response, err := client.ListHistoryTasks(ctx, req) + if err != nil { + return nil, nil, err } - paginate(c, paginationFunc) - } else if category == enumsspb.TASK_CATEGORY_REPLICATION { - req := &adminservice.ListReplicationTasksRequest{ShardId: sid} - paginationFunc := func(paginationToken []byte) ([]interface{}, []byte, error) { - req.NextPageToken = paginationToken - response, err := client.ListReplicationTasks(ctx, req) - if err != nil { - return nil, nil, err - } - token := response.NextPageToken + token := response.NextPageToken - var items []interface{} - for _, task := range response.Tasks { - items = append(items, task) - } - return items, token, nil + var items []interface{} + for _, task := range response.Tasks { + items = append(items, task) } - paginate(c, paginationFunc) - } else { - ErrorAndExit("Failed to describe task", fmt.Errorf("Unrecognized task type, task_type=%v", category)) + return items, token, nil + } + if err := paginate(c, paginationFunc, pageSize); err != nil { + ErrorAndExit("Failed to list history tasks", err) } } diff --git a/tools/cli/adminTaskQueueCommands.go b/tools/cli/adminTaskQueueCommands.go index f0b1bed84ea..15cb8cf12ec 100644 --- a/tools/cli/adminTaskQueueCommands.go +++ b/tools/cli/adminTaskQueueCommands.go @@ -97,7 +97,7 @@ func printTaskQueueStatus(taskQueueStatus *taskqueuepb.TaskQueueStatus) { // AdminListTaskQueueTasks displays task information func AdminListTaskQueueTasks(c *cli.Context) { - namespace := getRequiredOption(c, FlagNamespace) + namespace := getRequiredGlobalOption(c, FlagNamespace) tqName := getRequiredOption(c, FlagTaskQueue) tlTypeInt, err := stringToEnum(c.String(FlagTaskQueueType), enumspb.TaskQueueType_value) if err != nil { @@ -109,6 +109,10 @@ func AdminListTaskQueueTasks(c *cli.Context) { } minTaskID := c.Int64(FlagMinTaskID) maxTaskID := c.Int64(FlagMaxTaskID) + pageSize := defaultPageSize + if c.IsSet(FlagPageSize) { + pageSize = c.Int(FlagPageSize) + } workflowID := c.String(FlagWorkflowID) runID := c.String(FlagRunID) @@ -120,11 +124,13 @@ func AdminListTaskQueueTasks(c *cli.Context) { TaskQueueType: tqType, MinTaskId: minTaskID, MaxTaskId: maxTaskID, + BatchSize: int32(pageSize), } ctx, cancel := newContext(c) defer cancel() paginationFunc := func(paginationToken []byte) ([]interface{}, []byte, error) { + response, err := client.GetTaskQueueTasks(ctx, req) if err != nil { return nil, nil, err @@ -154,5 +160,7 @@ func AdminListTaskQueueTasks(c *cli.Context) { return items, nil, nil } - paginate(c, paginationFunc) + if err := paginate(c, paginationFunc, pageSize); err != nil { + ErrorAndExit("Failed to list task queue tasks", err) + } } diff --git a/tools/cli/util.go b/tools/cli/util.go index 78e37715f03..028251542a4 100644 --- a/tools/cli/util.go +++ b/tools/cli/util.go @@ -697,13 +697,9 @@ func showNextPage() bool { } // paginate creates an interactive CLI mode to control the printing of items -func paginate(c *cli.Context, paginationFn collection.PaginationFn) error { +func paginate(c *cli.Context, paginationFn collection.PaginationFn, pageSize int) error { more := c.Bool(FlagMore) isTableView := !c.Bool(FlagPrintJSON) - pageSize := c.Int(FlagPageSize) - if pageSize == 0 { - pageSize = defaultPageSize - } iter := collection.NewPagingIterator(paginationFn) var pageItems []interface{}