Cavalcade icon indicating copy to clipboard operation
Cavalcade copied to clipboard

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

Open ffxluca opened this issue 7 years ago • 1 comments

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.

ffxluca avatar Aug 24 '18 05:08 ffxluca

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

futtta avatar Sep 16 '20 11:09 futtta