port mutex sample from go repository
What was changed
Added a python sample for mutex pattern
Why?
The sample exists for go sdk but not for python yet. I needed it so I figured I could share it.
Checklist
- TODO
I’ve left a TODO in the code, I am not sure how to properly distinguish who sends a release in python (even if sender workflows are supposed to send them in order)
- How was this tested:
ran it locally with latest temporal dev server, and using branch pyproject.toml configuration.
- Any docs updates needed?
not that I think of
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.