humanmade / Cavalcade

A better wp-cron. Horizontally scalable, works perfectly with multisite.
https://engineering.hmn.md/projects/cavalcade/
Other
519 stars 46 forks source link

CAVALCADE_JOB_ID and DOING_CRON constants are defined at a very advanced stage of execution #63

Open ffxluca opened 6 years ago

ffxluca commented 6 years ago

Hey, this is Luca from FFX. Our paths cross again =)

I can see both CAVALCADE_JOB_ID and DOING_CRON constants are defined in Command::run() just before the actual execution of the scheduled hook.

That means I cannot access them during, say, any init or admin_init hook.

futtta commented 4 years ago

I can confirm DOING_CRON not being set (yet) caused problems for my plugin as well.