temporalio / temporalio/temporal
Simple way to handle a single concurrent workflow
Open
@mfateev is already working on this.
Since Jul 4, 2021.
API
devexp
enhancement
- Dominant language
- Go
- Stars
- 23.2k
- Forks
- 1.9k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 228
Description
Is your feature request related to a problem? Please describe.
I'm looking to create a task queue that needs to handle at most 1 workflow of a specific workflow type across workers.
Describe the solution you'd like
I think something like this could work for one worker:
we.RegisterWorkflowWithOptions(MyWorkflow, workflow.RegisterOptions{
MaxConcurrentWorkflowsInWorker: 1,
MaxConcurrentWorkflowsAcrossWorkers: 1,
})
But I'm not sure this would work across all workers. Any idea?
Describe alternatives you've considered
I took a look at this, this, and this.
I think these solutions are too complex to implement in comparison to the solution described.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.