feat: graceful workers

This commit is contained in:
loks0n
2026-01-07 16:50:53 +00:00
parent ded06d7435
commit eecfba2a72
3 changed files with 18 additions and 23 deletions
-5
View File
@@ -544,9 +544,4 @@ $worker
Console::error('[Error] Line: ' . $error->getLine());
});
$worker->workerStart()
->action(function () use ($workerName) {
Console::info("Worker $workerName started");
});
$worker->start();
+2 -2
View File
@@ -69,7 +69,7 @@
"utopia-php/platform": "0.7.*",
"utopia-php/pools": "0.8.*",
"utopia-php/preloader": "0.2.*",
"utopia-php/queue": "0.11.*",
"utopia-php/queue": "0.15.*",
"utopia-php/registry": "0.5.*",
"utopia-php/storage": "0.18.*",
"utopia-php/swoole": "0.8.*",
@@ -115,4 +115,4 @@
"tbachert/spi": true
}
}
}
}
Generated
+16 -16
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "375a062e8675e7e6938c1d8cc7b61ecf",
"content-hash": "aecb99247e6e5090561afd7134c247f9",
"packages": [
{
"name": "adhocore/jwt",
@@ -4700,16 +4700,16 @@
},
{
"name": "utopia-php/platform",
"version": "0.7.13",
"version": "0.7.14",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/platform.git",
"reference": "77a863a920122e2c6a6bc6ee5548d366a3f4c6c7"
"reference": "9f18ce63f1425ae2dae57468200e4a5d1239d57b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/platform/zipball/77a863a920122e2c6a6bc6ee5548d366a3f4c6c7",
"reference": "77a863a920122e2c6a6bc6ee5548d366a3f4c6c7",
"url": "https://api.github.com/repos/utopia-php/platform/zipball/9f18ce63f1425ae2dae57468200e4a5d1239d57b",
"reference": "9f18ce63f1425ae2dae57468200e4a5d1239d57b",
"shasum": ""
},
"require": {
@@ -4718,7 +4718,7 @@
"php": ">=8.0",
"utopia-php/cli": "0.15.*",
"utopia-php/framework": "0.33.*",
"utopia-php/queue": "0.11.*"
"utopia-php/queue": "0.15.*"
},
"require-dev": {
"laravel/pint": "1.*",
@@ -4745,9 +4745,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/platform/issues",
"source": "https://github.com/utopia-php/platform/tree/0.7.13"
"source": "https://github.com/utopia-php/platform/tree/0.7.14"
},
"time": "2025-12-08T10:02:40+00:00"
"time": "2026-01-06T15:39:45+00:00"
},
{
"name": "utopia-php/pools",
@@ -4856,22 +4856,22 @@
},
{
"name": "utopia-php/queue",
"version": "0.11.3",
"version": "0.15.0",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/queue.git",
"reference": "f3b2623efe87595c9ed907b3efd587e77c622d3d"
"reference": "6abb268ba7ec00dea4e5201b007776ea1bce9242"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/queue/zipball/f3b2623efe87595c9ed907b3efd587e77c622d3d",
"reference": "f3b2623efe87595c9ed907b3efd587e77c622d3d",
"url": "https://api.github.com/repos/utopia-php/queue/zipball/6abb268ba7ec00dea4e5201b007776ea1bce9242",
"reference": "6abb268ba7ec00dea4e5201b007776ea1bce9242",
"shasum": ""
},
"require": {
"php": ">=8.3",
"php-amqplib/php-amqplib": "^3.7",
"utopia-php/cli": "0.15.*",
"utopia-php/console": "0.0.*",
"utopia-php/fetch": "0.5.*",
"utopia-php/framework": "0.33.*",
"utopia-php/pools": "0.8.*",
@@ -4916,9 +4916,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/queue/issues",
"source": "https://github.com/utopia-php/queue/tree/0.11.3"
"source": "https://github.com/utopia-php/queue/tree/0.15.0"
},
"time": "2025-12-19T10:56:22+00:00"
"time": "2026-01-06T12:41:51+00:00"
},
{
"name": "utopia-php/registry",
@@ -8989,5 +8989,5 @@
"platform-overrides": {
"php": "8.3"
},
"plugin-api-version": "2.6.0"
"plugin-api-version": "2.9.0"
}