Adapt run-command for console.php executions

This commit is contained in:
Philipp 2025-01-02 20:53:16 +01:00
parent c79f0c83a7
commit eb0c38f90f
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 10 additions and 5 deletions

View file

@ -1207,7 +1207,7 @@ class Worker
if (Worker\Daemon::isMode() && DI::config()->get('system', 'worker_fork')) {
self::forkProcess($do_cron);
} else {
DI::system()->run('bin/console.php worker', ['no_cron' => !$do_cron]);
DI::system()->run('bin/console.php', ['worker'], ['no_cron' => !$do_cron]);
}
if (Worker\Daemon::isMode()) {
Worker\IPC::SetJobState(false);