From 163e87aa86f43a86155d55650ed349654edcdae5 Mon Sep 17 00:00:00 2001 From: David Badura Date: Thu, 1 Feb 2024 14:17:00 +0100 Subject: [PATCH] fix worker commands --- composer.json | 2 +- composer.lock | 14 +++++++------- src/Console/Command/OutboxConsumeCommand.php | 4 ++-- src/Console/Command/ProjectionRunCommand.php | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 0ee847a89..a862a9739 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "doctrine/dbal": "^3.8.0", "patchlevel/hydrator": "^1.1.0", - "patchlevel/worker": "^1.1.0", + "patchlevel/worker": "^1.1.1", "psr/cache": "^2.0.0|^3.0.0", "psr/clock": "^1.0", "psr/event-dispatcher": "^1.0", diff --git a/composer.lock b/composer.lock index a4674fce8..db8447201 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "0d37265cbb1d7222688eea284dfa9539", + "content-hash": "35c83bd2024057b56c882a16545c9568", "packages": [ { "name": "brick/math", @@ -471,16 +471,16 @@ }, { "name": "patchlevel/worker", - "version": "1.1.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/patchlevel/worker.git", - "reference": "d49f1545eedf5ae5ec57840af13850d9c256e0fe" + "reference": "1076160dcbf704adea66db13196e320479ec3090" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/patchlevel/worker/zipball/d49f1545eedf5ae5ec57840af13850d9c256e0fe", - "reference": "d49f1545eedf5ae5ec57840af13850d9c256e0fe", + "url": "https://api.github.com/repos/patchlevel/worker/zipball/1076160dcbf704adea66db13196e320479ec3090", + "reference": "1076160dcbf704adea66db13196e320479ec3090", "shasum": "" }, "require": { @@ -528,9 +528,9 @@ ], "support": { "issues": "https://github.com/patchlevel/worker/issues", - "source": "https://github.com/patchlevel/worker/tree/1.1.0" + "source": "https://github.com/patchlevel/worker/tree/1.1.1" }, - "time": "2023-12-12T14:22:01+00:00" + "time": "2024-02-01T13:03:05+00:00" }, { "name": "psr/cache", diff --git a/src/Console/Command/OutboxConsumeCommand.php b/src/Console/Command/OutboxConsumeCommand.php index 3298a46e9..33a0c0ae9 100644 --- a/src/Console/Command/OutboxConsumeCommand.php +++ b/src/Console/Command/OutboxConsumeCommand.php @@ -47,7 +47,7 @@ protected function configure(): void 'memory-limit', null, InputOption::VALUE_REQUIRED, - 'How much memory consumption should the worker be terminated', + 'How much memory consumption should the worker be terminated (e.g. 250MB)', ) ->addOption( 'time-limit', @@ -59,7 +59,7 @@ protected function configure(): void 'sleep', null, InputOption::VALUE_REQUIRED, - 'How much time should elapse before the next job is executed in microseconds', + 'How much time should elapse before the next job is executed in milliseconds', 1000, ); } diff --git a/src/Console/Command/ProjectionRunCommand.php b/src/Console/Command/ProjectionRunCommand.php index eadb39f51..a58c7fafd 100644 --- a/src/Console/Command/ProjectionRunCommand.php +++ b/src/Console/Command/ProjectionRunCommand.php @@ -40,7 +40,7 @@ protected function configure(): void 'memory-limit', null, InputOption::VALUE_REQUIRED, - 'How much memory consumption should the worker be terminated', + 'How much memory consumption should the worker be terminated (e.g. 250MB)', ) ->addOption( 'time-limit', @@ -52,7 +52,7 @@ protected function configure(): void 'sleep', null, InputOption::VALUE_REQUIRED, - 'How much time should elapse before the next job is executed in microseconds', + 'How much time should elapse before the next job is executed in milliseconds', 1000, ) ->addOption(