Skip to content

Instantly share code, notes, and snippets.

@janhalfar
Created September 3, 2012 14:39
Show Gist options
  • Save janhalfar/3609785 to your computer and use it in GitHub Desktop.
Save janhalfar/3609785 to your computer and use it in GitHub Desktop.
foomo job list example
<?php
namespace My\Module;
/**
* a sample job list
*/
class JobList implements \Foomo\Jobs\JobListInterface
{
public static function getJobs()
{
return array(
// create a job
AJob::create()
// configure it
->lock()
->maxExecutiontime(3600)
// add more jobs
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment