temporalio / temporalio/features
[Feature Request] Implement activity task poll limit
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 32
- Forks
- 28
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Description
Is your feature request related to a problem? Please describe.
It would be nice number of times an activity worker can poll tasks, as our service is currently not multi-tenant, and we would like to set it to 1. It will also help us to shutoff the workers gracefully by limiting the number of activities we allow it to run, as our activities can be long running, and we can't kill the activity and start new as progress will be lost.
Describe the solution you'd like
It can be handled with 2 solutions:
- Poller suspend polling after polling a task successfully
- Provide MaximumPollTaskPerPoller. See implementation at https://gist.github.com/madhav2302/e35a9336b2fd8ccfc36fe4452d9c26b5
Additional context
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
No files or tests are named. Begin by reviewing the two proposed behaviors and the linked gist, then inspect how this repository's behavior and history compatibility tests represent worker polling. Done means the chosen approach supports a configurable poll limit or suspends polling after a successful task while allowing long-running activities to finish.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100