temporalio / temporalio/temporal

Simple way to handle a single concurrent workflow

Open
#1,700 4 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.