Level 1
Same problem here!
When a job fails on Lumen, I've got a SQL error on inserting the failed jobs table in logs:
Field 'uuid' doesn't have a default value (SQL: insert into `failed_jobs` (`connection`, `queue`, `payload`, `exception`, `failed_at`) values (...)
From the console (I'm forcing the job fail with an exception here for show the issue):
[2021-01-09 14:31:47][fE95MXC6bKOJdgOctLFo43EzoaOXST6N] Processing: App\Jobs\MyJob
[2021-01-09 14:31:47][fE95MXC6bKOJdgOctLFo43EzoaOXST6N] Failed: App\Jobs\MyJob
This is the migration generated by lumen:
Schema::create('failed_jobs', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->text('connection');
$table->text('queue');
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
});
I'm using the latest version of Lumen, with redis as queue broker. I need to put something to generate the uuid? Or I should remove the uuid column?
Thanks in advance!
Please or to participate in this conversation.