Skip to content

Instantly share code, notes, and snippets.

@Dynom
Last active August 29, 2015 13:55
Show Gist options
  • Save Dynom/8781928 to your computer and use it in GitHub Desktop.
Save Dynom/8781928 to your computer and use it in GitHub Desktop.
<?php
$scheduler = new Scheduler();
$batch = new Batch(new BatchContext(/* ... */), new ThrottleBatchStrategy());
// Add jobs
$batch->addJob(new FooJob( new JobContext() ));
// Schedule job
$status = $scheduler->schedule( $batch );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment