Add an ability to customize task options (and data) when calling tube:release()
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 244
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
tube:release() accepts an optional second argument opts, which at this moment can only consist of delay. But often when I release a task back into the queue, I need to adjust other task options, such as priority or ttl. Also, in task data I usually store additional options such as retry strategy, retry count, etc, and it would be great if I can adjust them as well when calling tube:release() (or even better, add an extra field called extra or meta where users can store custom task options?).
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
Start with the tube:release() entry point and the linked releasing-a-task documentation, then trace how its current opts argument handles delay. Define the supported way to adjust task options and custom task data during release, with behavior that covers the priority, ttl, retry strategy, and retry count examples in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100