New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] should jobs ignore deleted records? #140
Comments
This is indeed a pretty common issue and I think in most if not all cases we'll want to ignore deleted records. Until now, I always assumed it was to be handled at application-level, but that's a nice discussion to open. Some thoughts. We can have recordsets in different arguments:
In most of the cases we want:
But we'll probably want to handle this only for edit: more thoughts: better in fact to apply |
@sbidoul that could be a way, if we want to handle it for all the args and keyword args we could handle it at a lower level during the field deserialization: Lines 62 to 66 in 490f246
|
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
We have a situation where we create jobs, but sometimes when the job starts the concerned record has been deleted. Such jobs fail.
The use case, is asynchronous execution of costly but non urgent computation. (forecasting in the contract module more precisely).
I'm wondering if queue_job should ignore deleted records, or if that should be handled at the application level, and how?
@lmignon @guewen cc/ @sbejaoui
The text was updated successfully, but these errors were encountered: