Giter Club home page Giter Club logo

Comments (6)

tractorcow avatar tractorcow commented on August 31, 2024

Ok, it looks like in our case QueuedJobsService::$memory_limit was EXACTLY set to the server limit, so there was no chance for the queue to safely escape.

from silverstripe-queuedjobs.

tractorcow avatar tractorcow commented on August 31, 2024

I've come up with a fix; Hope it meets the expected high quality of contribution. ;D

from silverstripe-queuedjobs.

nyeholt avatar nyeholt commented on August 31, 2024

It's a problem with any fatal error, in that the job is left "Running". There's some logic in checkJobHealth that will actually see whether a descriptor has incremented its "steps processed" field (ie currentStep from within the job), but that only kicks in if StepsProcessed is greater than 0. One way to work around things is to set currentStep in the constructor when first creating the job...

from silverstripe-queuedjobs.

tractorcow avatar tractorcow commented on August 31, 2024

Ok thanks @nyeholt :D

I wonder if we could improve the check to work even if StepsProcessed is 0; I've raised an internal ticket pointing at this open source issue and will try to schedule some time to properly resolve this.

from silverstripe-queuedjobs.

tractorcow avatar tractorcow commented on August 31, 2024

Yet another potential improvement at #43

It doesn't stop the module from crashing, but ensures that jobs are recoverable.

from silverstripe-queuedjobs.

tractorcow avatar tractorcow commented on August 31, 2024

I think this is issue obsolete with the new doorman backend. :)

from silverstripe-queuedjobs.

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.