Code Monkey home page Code Monkey logo

Comments (5)

dd32 avatar dd32 commented on August 23, 2024

recurring jobs set status = 'waiting' after successful runs, so it runs again.

I'm unsure if the failure is the runner or the plugin (or both). It would make sense that the plugin would only show jobs listed as status = 'waiting', which will cause wp_next_scheduled() not to show a date for failed jobs. It would also make sense for the Runner not to set the job as failed for a recurring job.

Changing the plugin to only return waiting jobs would mean that if a recurring job failed, there'd be multiple entries in the cavalcade_jobs table for that blog/hook - I'm unsure if that's a problem though.

from cavalcade.

ocean90 avatar ocean90 commented on August 23, 2024

In this case, I manually reset the status field for the jobs in question to waiting and it continued on it's way.

When doing that then for some reasons the job is running every second for a while. Is that because it's re-running all the jobs which didn't run before?

bildschirmfoto 2016-11-13 um 15 08 15

from cavalcade.

dd32 avatar dd32 commented on August 23, 2024

When doing that then for some reasons the job is running every second for a while. Is that because it's re-running all the jobs which didn't run before?

Yes, unless you update the nextrun field too. for most jobs it doesn't matter, but that job which was running every minute had a fair bit of iterations to catch up on (as the next run is calculated by nextrun = nextrun + schedule)

from cavalcade.

rmccue avatar rmccue commented on August 23, 2024

Correct; if you change it back to waiting, Cavalcade will continue running it normally, and it doesn't skip cycles. If you have a task that runs every minute, and it stops for five minutes, it will have to run 5 times before it catches back up.

from cavalcade.

dd32 avatar dd32 commented on August 23, 2024

I think the intention of #27 was to fix this, which I'm assuming it did as it hasn't been an issue on WordPress.org in years.

from cavalcade.

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.