8000 Propagate CloseVisibilityTaskId to DeleteExecutionVisibilityTask by MichaelSnowden · Pull Request #3404 · temporalio/temporal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Propagate CloseVisibilityTaskId to DeleteExecutionVisibilityTask #3404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

MichaelSnowden
Copy link
Contributor

Propagates the CloseVisibilityTaskId to the DeleteExecutionVisibilityTask, so that we can wait on the close visibility task to complete before we delete the execution visibility.

@MichaelSnowden MichaelSnowden marked this pull request as ready for review September 18, 2022 19:17
@MichaelSnowden MichaelSnowden requested a review from a team as a code owner September 18, 2022 19:17
@@ -970,6 +970,7 @@ func (s *ContextImpl) DeleteWorkflowExecution(
branchToken []byte,
startTime *time.Time,
closeTime *time.Time,
closeVisibilityTaskId int64,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: closeVisibilityTaskID

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe closeExecutionVisibilityTaskID to be consistent with the task type name defined here: https://github.com/temporalio/temporal/blob/master/service/history/tasks/close_visibility_task.go#L37

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks for catching that!

@@ -970,6 +970,7 @@ func (s *ContextImpl) DeleteWorkflowExecution(
branchToken []byte,
startTime *time.Time,
closeTime *time.Time,
closeVisibilityTaskId int64,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe closeExecutionVisibilityTaskID to be consistent with the task type name defined here: https://github.com/temporalio/temporal/blob/master/service/history/tasks/close_visibility_task.go#L37

@MichaelSnowden MichaelSnowden force-pushed the vis-propagate-close-task-id branch from 1893e72 to c4bd3c2 Compare September 20, 2022 16:16
@MichaelSnowden MichaelSnowden force-pushed the vis-propagate-close-task-id branch from c4bd3c2 to 183ef90 Compare September 20, 2022 19:13
@MichaelSnowden MichaelSnowden enabled auto-merge (squash) September 20, 2022 19:16
@MichaelSnowden MichaelSnowden merged commit d890a2f into temporalio:master Sep 20, 2022
@MichaelSnowden MichaelSnowden deleted the vis-propagate-close-task-id branch December 29, 2022 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0