mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #912] [BUG] asynq.TaskID does not work for periodic tasks #2481
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#2481
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 @bayoumymac on GitHub (Aug 31, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/912
Originally assigned to: @hibiken on GitHub.
Describe the bug
asynq.TaskID doesn't work for periodic tasks as it can only be passed when setting up the scheduler
To Reproduce
setting up a scheduler using the following, does not generate a separate taskId per periodic task enqueued
Expected behavior
ability to set taskId for periodic tasks, there are multiple solutions
bonus: have a validation check on options passed to scheduler.Register and fail if option is not supported
Environment (please complete the following information):
asynqpackage v0.24.0Additional context
currently this solution works but but definitely is an anti pattern