Open arifmahmudrana opened 4 weeks ago
because my task isn't in pending or active or in aggregating.
Yes, it might be completed. If you want to run a completed task, would copying the payload and running it again suffice?
because my task isn't in pending or active or in aggregating.
Yes, it might be completed. If you want to run a completed task, would copying the payload and running it again suffice?
@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
Well technically you could control the states within the hashset, but this is not documented. Maybe have a look at Inspector.RunAllArchivedTasks
and see if you can modify it for your use case.
Are there any way to run the tasks that's retention exceeds? e.g. when we call
GetTaskInfo
in theasynq.Inspector
it returns the TaskInfo but when executing the task using theRunTask
using theasynq.Inspector
we 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?