-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] is it possible to configure a queue to allow to schedule a specific job only once? #146
Comments
Even if you implement something with Suppose that the job just came out of the scheduled set.
In this case your code will add a new job to the scheduled set. I'm not sure what's the best approach here 🤔 |
If the goal is simply to prevent rescheduling, one possible solution:
The main issue that arises: how we do garbage collect the set? The maximum set size is ~14mil (2^32), so if you are doing normal-ish production volume then you can't persist the set forever. How much of a problem this is depends on the requirements you had in mind @fcevado. |
i want to allow a job(same class, args and queue) to be schedule only once... is that possible? i found out that there isn't any easi api to get scheduled jobs or to verify running jobs... i kinda use
Verk.SortedSet.range/4
for that but idk if that is consistent.... i've seen duplicate jobs scheduling neverthelessThe text was updated successfully, but these errors were encountered: