From 232150a8141d7460daa01cd639444a3149d55d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ribeiro?= Date: Sun, 11 Dec 2022 15:31:27 +0000 Subject: [PATCH 1/2] Fixed bug on Batchs Jobs Table If the batch has more than 1000 errors the function Bus::findBatch() fails because the database cuts down the words when reach is limit and then the seventh argument returns null because can't be json decoded. --- src/Illuminate/Queue/Console/stubs/batches.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/Console/stubs/batches.stub b/src/Illuminate/Queue/Console/stubs/batches.stub index 60be4d2b2ef1..12b99d23081e 100644 --- a/src/Illuminate/Queue/Console/stubs/batches.stub +++ b/src/Illuminate/Queue/Console/stubs/batches.stub @@ -19,7 +19,7 @@ return new class extends Migration $table->integer('total_jobs'); $table->integer('pending_jobs'); $table->integer('failed_jobs'); - $table->text('failed_job_ids'); + $table->longtext('failed_job_ids'); $table->mediumText('options')->nullable(); $table->integer('cancelled_at')->nullable(); $table->integer('created_at'); From b6c9699efa9300cc7d91f1d0ff161a93dec9ca86 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 12 Dec 2022 09:14:05 -0600 Subject: [PATCH 2/2] Update batches.stub --- src/Illuminate/Queue/Console/stubs/batches.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/Console/stubs/batches.stub b/src/Illuminate/Queue/Console/stubs/batches.stub index 12b99d23081e..c3ff23179138 100644 --- a/src/Illuminate/Queue/Console/stubs/batches.stub +++ b/src/Illuminate/Queue/Console/stubs/batches.stub @@ -19,7 +19,7 @@ return new class extends Migration $table->integer('total_jobs'); $table->integer('pending_jobs'); $table->integer('failed_jobs'); - $table->longtext('failed_job_ids'); + $table->longText('failed_job_ids'); $table->mediumText('options')->nullable(); $table->integer('cancelled_at')->nullable(); $table->integer('created_at');