Connection, Queue & Delay
Delay
$haystack = Haystack::build()
->withDelay(60)
->addJob(new RecordPodcast)
->addJob(new ProcessPodcast)
->dispatch();Connection
$haystack = Haystack::build()
->onConnection('redis')
->addJob(new RecordPodcast)
->addJob(new ProcessPodcast)
->dispatch();Queue
$haystack = Haystack::build()
->onQueue('podcasts')
->addJob(new RecordPodcast)
->addJob(new ProcessPodcast)
->dispatch();Custom Delay, Connection, Queue Per Job
Last updated