You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how we would ensure idempotence, since the actual work done by a job may be intrinsically not idempotent.
A good example is sending an email. The email will be sent (or at least attempted to be sent) for each run of the job.
But perhaps you mean it in the way that the running of the job instance should be idempotent, disregarding the side-effects resulting from whatever work is to be done by the job.
In this case, this is achievable. The basic idea is to set the job's state back to "PENDING", at which point the worker should pick it up again and run it.
@michaelbromley Agree... Even those jobs that are intrinsically not idempotent they can be in the sense that we can confirm that the job was successfully complete under certain conditions. In the case of an email — ensuring the job checks that email is sent with no errors and SMTP connection closed successfully would at least ensure that repeat emails are not sent.
Please see #739 for details!
The text was updated successfully, but these errors were encountered: