You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to create separate queues? I have a plugin that pushes data to a third party api, and also pulls data from that same api.
What I had done in WP_Background_Processing is create an array of classes that could be scheduled, each with a callback method that the class could call.
Then I used add_filter( 'cron_schedules', array( $this, 'set_schedule_frequency' ) ); to loop through the classes and load a user configured (in wp_options) setting for how often each one should run.
Can I do this in wp-queue? I notice that the cron class starts off like this: public function __construct( $id, $worker, $interval ) { but I'm not sure how that relates, for example, to wp_queue()->cron();
I notice that the cron class already has its own schedule_cron method, but it does not appear to be extensible.
What is the best way to create (three, for example) cron schedules from a class property, with possibly distinct intervals?
The text was updated successfully, but these errors were encountered:
Is it possible to create separate queues? I have a plugin that pushes data to a third party api, and also pulls data from that same api.
What I had done in WP_Background_Processing is create an array of classes that could be scheduled, each with a callback method that the class could call.
Then I used
add_filter( 'cron_schedules', array( $this, 'set_schedule_frequency' ) );
to loop through the classes and load a user configured (in wp_options) setting for how often each one should run.Can I do this in wp-queue? I notice that the cron class starts off like this:
public function __construct( $id, $worker, $interval ) {
but I'm not sure how that relates, for example, towp_queue()->cron();
I notice that the cron class already has its own
schedule_cron
method, but it does not appear to be extensible.What is the best way to create (three, for example) cron schedules from a class property, with possibly distinct intervals?
The text was updated successfully, but these errors were encountered: