From b7f5ee034a1f92bdb5bd17b18c832d151fccff3b Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Mon, 28 Feb 2022 20:06:18 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=20Add=20batched=20jobs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Probably won't need it --- config/commands.php | 7 ---- ..._03_01_011855_create_job_batches_table.php | 39 +++++++++++++++++++ 2 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 database/migrations/2022_03_01_011855_create_job_batches_table.php diff --git a/config/commands.php b/config/commands.php index 2c61697..00466a0 100644 --- a/config/commands.php +++ b/config/commands.php @@ -42,18 +42,11 @@ return [ */ 'add' => [ - \Illuminate\Queue\Console\BatchesTableCommand::class, \Illuminate\Queue\Console\ClearCommand::class, - \Illuminate\Queue\Console\FlushFailedCommand::class, - \Illuminate\Queue\Console\ForgetFailedCommand::class, - \Illuminate\Queue\Console\ListFailedCommand::class, \Illuminate\Queue\Console\MonitorCommand::class, \Illuminate\Queue\Console\PruneBatchesCommand::class, \Illuminate\Queue\Console\PruneFailedJobsCommand::class, - \Illuminate\Queue\Console\RestartCommand::class, \Illuminate\Queue\Console\RetryBatchCommand::class, - \Illuminate\Queue\Console\RetryCommand::class, - \Illuminate\Queue\Console\WorkCommand::class, ], /* diff --git a/database/migrations/2022_03_01_011855_create_job_batches_table.php b/database/migrations/2022_03_01_011855_create_job_batches_table.php new file mode 100644 index 0000000..226e640 --- /dev/null +++ b/database/migrations/2022_03_01_011855_create_job_batches_table.php @@ -0,0 +1,39 @@ +string('id')->primary(); + $table->string('name'); + $table->integer('total_jobs'); + $table->integer('pending_jobs'); + $table->integer('failed_jobs'); + $table->text('failed_job_ids'); + $table->mediumText('options')->nullable(); + $table->integer('cancelled_at')->nullable(); + $table->integer('created_at'); + $table->integer('finished_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('job_batches'); + } +};