diff --git a/app/config/queue.php b/app/config/queue.php index c0dc86392..429c03ada 100644 --- a/app/config/queue.php +++ b/app/config/queue.php @@ -11,11 +11,11 @@ return array( | API, giving you convenient access to each back-end using the same | syntax for each one. Here you may set the default queue driver. | - | Supported: "sync", "beanstalkd", "sqs", "iron" + | Supported: "cron", "sync", "beanstalkd", "sqs", "iron" | */ - 'default' => 'sync', + 'default' => 'cron', /* |-------------------------------------------------------------------------- @@ -30,6 +30,10 @@ return array( 'connections' => array( + 'cron' => array( + 'driver' => 'cron', + ), + 'sync' => array( 'driver' => 'sync', ), diff --git a/modules/system/database/migrations/2013_10_01_000010_Db_Cron_Queue.php b/modules/system/database/migrations/2013_10_01_000010_Db_Cron_Queue.php new file mode 100644 index 000000000..33e42b6d7 --- /dev/null +++ b/modules/system/database/migrations/2013_10_01_000010_Db_Cron_Queue.php @@ -0,0 +1,28 @@ +engine = 'InnoDB'; + $table->increments('id'); + $table->integer('delay')->default(0); + $table->integer('status')->default(0); + $table->integer('retries')->default(0); + $table->text('payload')->nullable(); + $table->timestamps(); + }); + } + + public function down() + { + Schema::dropIfExists('cron_queue'); + } + +}