mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #352] Is batch tasks possible? #1167
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#1167
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @1337-sys on GitHub (Nov 19, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/352
Thank you very much for writing such a wonderful queue library.
Finally, I would like to ask you something based on your experience.
queue -> uniqueUserID_notifications(per user)
queue -> notifications
Which would be more suitable? Can I delete notifications from someone with user id x when there is only one queue?
@hibiken commented on GitHub (Nov 20, 2021):
@1337-sys Thank you for opening an issue.
Let me make sure that I understood your questions correctly:
To use an example, if you enqueue task A, B and C to a queue. You want to handle these three tasks as a unit (e.g. in batch) instead of handling them individually? In other words, you want to group these tasks into one task that gets delivered to your
Handler? If this is what you meant, there is an open feature-request: #339 and I will be working on it once I have a good design.To answer the second question:
It's currently not possible to dynamically define which queues to consume tasks from in server's Config. A potential feature request would be to add support for prefix based queue matching when specifying the queues in server config.
You could use
Inspector.DeleteTaskto delete a task with queue name and task ID, but I'm not quite sure if this is what you are looking for.If you could provide more context or examples, I can answer better to these questions :)
@hibiken commented on GitHub (Jan 16, 2022):
Duplicate of #339