🗃️ Add priority to queue

This commit is contained in:
Dan Jones 2022-08-20 22:04:32 -05:00
commit 61f9cfb009
7 changed files with 171 additions and 2 deletions

View file

@ -18,6 +18,7 @@ return new class extends Migration
$table->string('queue')->index();
$table->longText('payload');
$table->unsignedTinyInteger('attempts');
$table->smallInteger('priority')->default(3);
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');