mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 15:35:55 +03:00
[GH-ISSUE #923] [Question] Are there any way to run the tasks that's retention exceeds #1473
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#1473
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 @arifmahmudrana on GitHub (Oct 23, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/923
Are there any way to run the tasks that's retention exceeds? e.g. when we call
GetTaskInfoin theasynq.Inspectorit returns the TaskInfo but when executing the task using theRunTaskusing theasynq.Inspectorwe get error. You are calling a redis scriptSo I assume it's erroring while calling
local n = redis.call("ZREM", ARGV[2] .. state, ARGV[1])because my task isn't in pending or active or in aggregating.So are there anything I can do to add that to the queue may be by adding a record in the redis any idea?
@kamikazechaser commented on GitHub (Oct 25, 2024):
Yes, it might be completed. If you want to run a completed task, would copying the payload and running it again suffice?
@arifmahmudrana commented on GitHub (Oct 28, 2024):
@kamikazechaser thanks for your suggestion yes I can clone the task that's one option but my question is whether it's possible without cloning e.g. by adding some record in some hashset etc. I would prefer directly adding records in the redis without going one by one in the task list
@kamikazechaser commented on GitHub (Oct 29, 2024):
Well technically you could control the states within the hashset, but this is not documented. Maybe have a look at
Inspector.RunAllArchivedTasksand see if you can modify it for your use case.