-
Hello, I have this use case. For example I have a job named "increment-${someIntId}" with body like this {
incrementWith: 1
} So the thing is if job is not taken or done instead of dedublication i want to modify old job body for example {
incrementWith:2
} Is there a way how to do this? Or some best practices? Thnaks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no reliable way to do this. You could listen to the deduplication event, and then act on it by updating the old job (assuming it has not yet started), but events do not provide any guarantees, so sometimes either you loose the event or maybe you fail updating the job because maybe the process happens to crash exactly at that moment, and then you will end without updating the job as you wanted. So it all depends on your requirements. |
Beta Was this translation helpful? Give feedback.
There is no reliable way to do this. You could listen to the deduplication event, and then act on it by updating the old job (assuming it has not yet started), but events do not provide any guarantees, so sometimes either you loose the event or maybe you fail updating the job because maybe the process happens to crash exactly at that moment, and then you will end without updating the job as you wanted. So it all depends on your requirements.