-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Different unique arguments depending on lock type #203
Comments
I think this could be achieved by sending the lock type to |
What solution did you end up with? |
I did this:
|
Thanks for the quick response @stanley90. Interesting solution, idn't know about |
I don't remember exactly, it's been a while. I was looking for a way to distinguish in which context is the current process running, and found this (there might be other ways too); I think it was 0 in the app context (queuing) and a positive value in the actual background processing. Now looking at it, maybe the condition should actually be |
I'm adding some information in the README for this and closing the issue. |
Hi
I want to use the
until_and_while_executing
option but with different unique arguments. Let's say my worker has two arguments:id, date
I want the jobs to be unique by both arguments in the queue, but only by the
id
during execution.Is this possible?
Thanks
The text was updated successfully, but these errors were encountered: