Skip to content

Commit

Permalink
Expose scheduled event ID on PendingNexusOperationInfo (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergundy committed Jul 12, 2024
1 parent fc7a078 commit 39b0f69
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8725,6 +8725,11 @@
},
"cancellationInfo": {
"$ref": "#/definitions/v1NexusOperationCancellationInfo"
},
"scheduledEventId": {
"type": "string",
"format": "int64",
"description": "The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the\nDescribeWorkflowExecution response with workflow history."
}
},
"description": "PendingNexusOperationInfo contains the state of a pending Nexus operation."
Expand Down
5 changes: 5 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6461,6 +6461,11 @@ components:
format: date-time
cancellationInfo:
$ref: '#/components/schemas/NexusOperationCancellationInfo'
scheduledEventId:
type: string
description: |-
The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the
DescribeWorkflowExecution response with workflow history.
description: PendingNexusOperationInfo contains the state of a pending Nexus operation.
PendingWorkflowTaskInfo:
type: object
Expand Down
4 changes: 4 additions & 0 deletions temporal/api/workflow/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ message PendingNexusOperationInfo {
google.protobuf.Timestamp next_attempt_schedule_time = 11;

NexusOperationCancellationInfo cancellation_info = 12;

// The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the
// DescribeWorkflowExecution response with workflow history.
int64 scheduled_event_id = 13;
}

// NexusOperationCancellationInfo contains the state of a nexus operation cancellation.
Expand Down

0 comments on commit 39b0f69

Please sign in to comment.