humanmade / Cavalcade

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

Add job id constant for hooks #53

Closed dan-westall closed 6 years ago

dan-westall commented 6 years ago

Description

Currently theres no way to obtain the job id from within a method being run as a Cavalcade job. This adds the CAVALCADE_JOB_ID constant allowing access to the current job.

dan-westall commented 6 years ago

@rmccue good idea, so If your happy with this pr, ready to merge?

rmccue commented 6 years ago

If your happy with this pr, ready to merge?

Yep (and feel free to merge stuff that has an approved review; I only left it unmerged in case the action negated the need for this entirely).