temporalio / temporalio/temporal
History Queue Deletion & Life Cycle
Nobody has claimed this yet.
- 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.
Our history queue logic supports creating new history queue by simply define a new category and task execution logics. However, there's no good story for deleting or stop using an existing queue due to the fact that there might always be some backlogs in the database.
Today, simply skipping task category registration on service start up will result in an undefined behavior:
- In 1.21, the server will panic if shard info sees a task categoryID but can't find the corresponding task category definition. (This is actually preferred now since it won't result in task loss and will be more explicit signal on mis-configuration)
- In master branch, server won't panic but queue won't start and the data will be left in shard info metadata.
We should have a proper design for history queue deprecation. This could be useful for disabling archival queue and in the future if more history queues needs to be dynamically created and deleted.
Describe the solution you'd like
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
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.
Research direction
Start by tracing history queue registration, task category handling, and shard info metadata, focusing on what happens when a category definition is absent. Define the lifecycle and safety behavior for deprecating a queue, including existing database backlogs, avoiding task loss, and preventing undefined or panic behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100