-
Notifications
You must be signed in to change notification settings - Fork 182
Add option to remove unique token #497
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
base: master
Are you sure you want to change the base?
Conversation
@@ -57,6 +57,10 @@ defmodule Exq.Redis.JobQueue do | |||
end | |||
end | |||
|
|||
def unlock_jobs(redis, namespace, raw_jobs) do | |||
raw_jobs |> Enum.each(&unlock(redis, namespace, Job.decode(&1).unique_token)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we handle missing unique_token gracefully? Let's say we enable this flag by default on ExqUI, it's easier to just send a list of jobs and include this flag rather than trying to figure out which job has unique token etc. If there is no token, this could become a no-op?
lgtm overall, I will test it a bit more and plan to merge this weekend |
According to this issue Addition of
unlock
option toremove_*_jobs
functions family