Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix possibly sending LA marker after WF Complete command #678

Merged
merged 5 commits into from
Feb 2, 2024

Conversation

Sushisource
Copy link
Member

@Sushisource Sushisource commented Feb 2, 2024

What was changed

Detect terminal commands and avoid doing anything else with LAs other than issuing cancels to outstanding ones.

Also fixed a possible shutdown hang that this surfaced.

Why?

Bugfix

Checklist

  1. Closes [Bug] Local activity markers might create commands after workflow completion #659

  2. How was this tested:
    Added unit test which repro'd issue consistently, fixed it.

  3. Any docs updates needed?

Comment on lines +183 to +184
let processing_task = thread::Builder::new()
.name("workflow-processing".to_string())
Copy link
Member Author

Choose a reason for hiding this comment

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

Only change here is naming this thread properly. Everything else is whitespace.

@Sushisource Sushisource enabled auto-merge (squash) February 2, 2024 17:08
@Sushisource Sushisource merged commit 4f0b7f3 into temporalio:master Feb 2, 2024
7 checks passed
@Sushisource Sushisource deleted the la-after-wf-complete branch February 2, 2024 17:31
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Local activity markers might create commands after workflow completion
2 participants