Comments (8)
@Gokulakannanaj Thank you for the report. Nevertheless, I've some difficulties to understand what's the problem. If a process creates jobs that fail at execution it's not the responsibility of the queue framework to prevent the creation of the same kind of jobs. The causes of a job process error can be multiple. In some cases, they may be temporary, in other cases related to an external context at the time of execution. IMO there is no rule to say that such a job should no longer be performed if the previous one has failed.
from queue.
Did you fixed your deployment since #103? If not it might cause unexpected problems.
In any case, I don't understand your description.
from queue.
Process state changed to failed due to some issue(Like validation error). Now i delete the failed records(consider record 1) from database.Fine.But after some time, deleted record(record 1) created automatically.
from queue.
This is the expected behavior, if you have a trigger for a job, it will create a new job no matter what you had before, on purpose.
You may want to check again what is delaying your job in your code and the job function itself: you should never have a failed job, you should handle the failure in a proper way in your job's code.
Example: if you want to never delay a job again for a record when have a kind of validation error, then in your job instead of letting the exception bubble up to the job, the code of the job should catch the error, add a flag on the record that marks it as "don't delay the job again" and let the job finish properly (done, not failed).
from queue.
But now i remove the failed record then why its created automatically ?
I have no trigger and also max retries is 1.I deleted the record then why its come again ?
from queue.
There is no way to delete a job from the UI, because it's not what you should do. You have to set a job as "done" if you want to ignore the failure.
from queue.
Hi @guewen is it possible to avoid recreation without set done?
For example changing retries as 1 or something else
from queue.
I can't help you because I can't understand what your exact problem is. You may want to learn from http://www.catb.org/esr/faqs/smart-questions.html about better ways to be helped.
from queue.
Related Issues (20)
- Error with PgBouncer HOT 6
- OperationalError, but progress is saved and job is repeated couple more times
- KeyError: 'socket' After install queue.job in odoo 16.0 HOT 9
- [14.0] identity_exact not working w/ chained jobs? HOT 6
- installation not possible in odoo 16 HOT 2
- Since Odoo 15.0 environment.manage is useless warning from migration script in queue_job HOT 2
- Assigning delayable variable to another variable breaks delayable HOT 1
- queue_job_cron_jobrunner for v13 HOT 3
- Cannot install queue_job on odoo 16/windows (OSError: [WinError 10038] An operation was attempted on something that is not a socket) HOT 3
- Migration to version 17.0 HOT 4
- OperationalError: Unable to use a closed cursor HOT 2
- job_record_with_same_identity_key: make states configurable per job HOT 1
- [16.0] queue_job: Autovacuum doesn't clean up sub channels HOT 8
- The latest test change breaks tests on Odoo.sh HOT 2
- [15.0] Queue job in chain does not see changes from previous job HOT 1
- Run job in a chain when previous job/jobs failed? HOT 1
- [QUESTION][16.0] queue_job: How to run parallel queue
- [16][queue_job] JobsTrap perform_enqueued_jobs not working with jobs creating new jobs
- [16.0] Add support to show job progress
- OSError: [WinError 10038] 在一个非套接字上尝试了一个操作。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from queue.