Make “loner” implementation comply with its specification#24
Make “loner” implementation comply with its specification#24amiryal wants to merge 5 commits intolantins:masterfrom
Conversation
|
Long delay! I'm inclined to merge this and trust your judgment, the problem I have is I'm not familiar with the loner plugin :/ |
There was a problem hiding this comment.
@amiryal I know its a bit to ask, because it's been a while, but I'd appreciate some input from you so we can see this addressed.
From the "loner" docs it says:
Two jobs of the same class with the same parameters/arguments/workload must produce the same redis_key
Does this not mean the 2nd enqueue should fail? and we should have 2 jobs enqueued total?
|
@lantins, it’s OK, it took me a little while to regain mental image, too. Notice how the method BTW, if you run the new test on the code before this patch, the first assertion passes. It’s the other assertion that fails, because it depends on propagation of the Hope this helps. |
The difference being, we won't run any around or after perform hooks this way.
The default
loner()method is accepting*args, but they are not passed along where this method is called.Note, this pull request includes a test case, but it only covers one code path, whereas I fixed 3 different places.