Git Product home page Git Product logo

Comments (8)

lmignon avatar lmignon commented on August 20, 2024

@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.

guewen avatar guewen commented on August 20, 2024

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.

Gokulakannanaj avatar Gokulakannanaj commented on August 20, 2024

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.

guewen avatar guewen commented on August 20, 2024

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.

Gokulakannanaj avatar Gokulakannanaj commented on August 20, 2024

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.

guewen avatar guewen commented on August 20, 2024

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.

Gokulakannanaj avatar Gokulakannanaj commented on August 20, 2024

Hi @guewen is it possible to avoid recreation without set done?
For example changing retries as 1 or something else

from queue.

guewen avatar guewen commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.