Skip to content

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

dmitrykleymenov
Copy link

According to this issue Addition of unlock option to remove_*_jobs functions family

@@ -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))
Copy link
Collaborator

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?

@ananthakumaran
Copy link
Collaborator

lgtm overall, I will test it a bit more and plan to merge this weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants