-
Hi, Sorry if it might seems like a trivial question, but after reading the doc severals times I have the feeling that "Until Executed" and "Until And While Executing" locking strategy do the exact same thing. From what I understand "Until Executed" will put a lock when the job is enqueued and remove it after And "Until And While Executing" will put a lock when the job is enqueued remove it when job So what is the difference in the end. Are the lock during "Until And While Executing" 2 different locks ? Or is the difference is in the way they handle retry ? I can't get around it. If it helps, what I'm looking for is the strategy that will put a lock from first enqueing to '#perform' success without removing the lock during retries or at any time. I guess it's one of them but I'm not sure which one. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
looking at other discussion I found this answer in a thread #656 (reply in thread) I'm still not quite sure of the behavior in retries but I should be able to try it myself. |
Beta Was this translation helpful? Give feedback.
looking at other discussion I found this answer in a thread #656 (reply in thread)
It seems that the difference is indeed that the 2 locks are different. Maybe the doc for "Until And While Executing" could be more clear and specify that the combination of the 2 locks is really an addition of 2 different lock sand not a combination of behavior in 1 lock.
I'm still not quite sure of the behavior in retries but I should be able to try it myself.