Comments (5)
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.
In this case, I manually reset the
status
field for the jobs in question towaiting
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?
from cavalcade.
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.
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.
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)
- Cron filters are not registered early enough HOT 3
- --allow-root HOT 3
- Access to wp-cron.php should be disabled when Cavalcade is in use HOT 2
- Issues with the index on `nextrun` HOT 14
- PHP 8.0 composer support
- WordPress 5.7 support HOT 3
- wp_schedule_single_event not executing function when calvacade is running on server but works locally
- Results of get_jobs_by_query can give stale timestamps for recurring jobs
- Existing jobs HOT 2
- Some CRON events are not executed (Large WP Multisite) HOT 10
- Question: How do determine whether Cavalcade is active from other Code? HOT 1
- Cavalcade is not working? HOT 1
- Why does Cavalcade do so much on every page load? HOT 3
- Performance issues if checking for schedules during every page load HOT 11
- Command that takes a job id and sets status to 'failed'
- Quick questions HOT 2
- Possible Wrong Version Display and LOG disabling solution HOT 2
- How to fix Cavalcade? HOT 2
- Add `.gitattributes` file to exclude files not needed in composer installs. HOT 1
- Allow to not replay every missing events HOT 1
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 cavalcade.