temporalio / temporalio/temporal

Notify all workers on a task queue

Open
#3,309 2 comments 7 reactions 1 assignee View on GitHub

@dnr is already working on this.

Since Sep 9, 2022.

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.

User scenario:

My scenario:
I have multiple workers listening on the same task queue for high throughput.
All the workers need to do some setup and cleanup work from time to time.
My requirement:
the business client can send a workflow or a command, which can be picked up and executed by all workers, instead of only one of them.
Is there any solution?

Describe the solution you'd like
My strawman proposal is to have a metadata map that is returned as part of every workflow or activity task. An admin API should support updating this map. The SDKs should watch for map changes and execute appropriate logic to notify workers about the changes.

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.