Queue
Scheduled tasks
Queue
Schedule tasks for later.
Introduction
This package implements Illuminate Queue.
important
Not all Artisan Commands are supported yet.
Run wp artisan to see what is available to you.
Getting started
First off, make sure the module, and Morningmedley Database, is installed and set up.
Since this package mostly wraps Illuminate Queue, most of the Laravel documentation applies.
Prepare the database
Before you can use the queue you need to create a table for it in the db:
wp artisan make:queue-table
wp artisan make:queue-failed-table
wp artisan migrate
Create and dispatch jobs
You can create a new job by calling make:job
wp artisan make:job MyJob
Then edit the handle method of your job in /app/Jobs/
To dispatch a job use MyJob::dispatch()
Run the queue worker
wp artisan queue:work