Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next scheduled cron runs irregularly #5

Closed
r-a-y opened this issue Apr 18, 2012 · 0 comments
Closed

Next scheduled cron runs irregularly #5

r-a-y opened this issue Apr 18, 2012 · 0 comments

Comments

@r-a-y
Copy link
Owner

r-a-y commented Apr 18, 2012

I've noticed that the next scheduled cron can run irregularly than the keep alive value located in the settings area.

eg. My keep alive value is 5 minutes. I visit my site at 9:00am and trigger WP cron to run our task. The next scheduled event is correctly set for 9:05am. However, if no one visits our site afterwards until 9:07am. The cron job will reactivate at 9:07am and run for 5 minutes (end at 9:12am), but the next scheduled event in WP is set for 9:10am (which is 5 minutes after 9:05am).

This can cause irreguarity between inbox checks. It also doesn't help that sleep( 10 ) is used during the inbox check and that a leeway gap is added in bp_rbe_custom_cron_schedule().

Will need to think of a better way to reschedule cron.

In the meantime, if you run into this problem, deactivate the plugin and reactivate.

@r-a-y r-a-y closed this as completed in d99af11 Apr 19, 2012
r-a-y added a commit that referenced this issue Jul 11, 2012
* In bp_rbe_cron(), switch out wp_remote_post() for spawn_cron().
* In bp_rbe_custom_cron_schedule(), remove the leeway interval as it isn't necessary any more.
* In BP_Reply_By_Email_IMAP::run(), add some comments for later reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant