From 4c032249019196604dbbca0ef2bae7db444b0fdb Mon Sep 17 00:00:00 2001 From: "lucas.mathieu" Date: Thu, 5 Feb 2026 16:25:26 +0100 Subject: [PATCH] fix: jobs table --- .../0001_01_01_000001_create_jobs_table.php | 26 +++++++++++++++++++ docker/supervisor/supervisord.conf | 9 +++++++ 2 files changed, 35 insertions(+) create mode 100644 database/migrations/0001_01_01_000001_create_jobs_table.php diff --git a/database/migrations/0001_01_01_000001_create_jobs_table.php b/database/migrations/0001_01_01_000001_create_jobs_table.php new file mode 100644 index 00000000..cb4e8783 --- /dev/null +++ b/database/migrations/0001_01_01_000001_create_jobs_table.php @@ -0,0 +1,26 @@ +bigIncrements('id'); + $table->string('queue')->index(); + $table->longText('payload'); + $table->unsignedTinyInteger('attempts'); + $table->unsignedInteger('reserved_at')->nullable(); + $table->unsignedInteger('available_at'); + $table->unsignedInteger('created_at'); + }); + } + + public function down(): void + { + Schema::dropIfExists('jobs'); + } +}; diff --git a/docker/supervisor/supervisord.conf b/docker/supervisor/supervisord.conf index cb70056e..a1e5e8f8 100644 --- a/docker/supervisor/supervisord.conf +++ b/docker/supervisor/supervisord.conf @@ -4,6 +4,15 @@ user=root logfile=/var/log/supervisord.log pidfile=/var/run/supervisord.pid +[unix_http_server] +file=/var/run/supervisor.sock + +[supervisorctl] +serverurl=unix:///var/run/supervisor.sock + +[rpcinterface:supervisor] +supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface + [program:php-fpm] command=/usr/local/sbin/php-fpm -F autostart=true