Skip to content
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

Document workflow-friendly concurrency control #554

Closed
drewhoskins-temporal opened this issue Jun 18, 2024 · 3 comments · May be fixed by #567
Closed

Document workflow-friendly concurrency control #554

drewhoskins-temporal opened this issue Jun 18, 2024 · 3 comments · May be fixed by #567

Comments

@drewhoskins-temporal
Copy link

drewhoskins-temporal commented Jun 18, 2024

Document and add tests confirming that asyncio.Lock and asyncio.Semaphore can be used to control interleaving of signal and update handlers and the main workflow coroutine.

@sreeprasannar
Copy link

does this mean currently using asyncio.Lock could lead to a deadlock?

@dandavison dandavison changed the title Workflow-friendly concurrency control Document workflow-friendly concurrency control Jul 29, 2024
@dandavison
Copy link
Contributor

Hi @sreeprasannar

does this mean currently using asyncio.Lock could lead to a deadlock?

No -- using asyncio.Lock in sdk-python workflow code is appropriate and recommended.

Thanks! I've changed the title & wording of this ticket.

@drewhoskins-temporal
Copy link
Author

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 a pull request may close this issue.

3 participants