Refactor Process for new paradigm

This commit is contained in:
Philipp 2021-10-24 20:43:59 +02:00
parent 0e2e488521
commit 38f70cc55a
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
14 changed files with 456 additions and 491 deletions

View file

@ -81,8 +81,10 @@ if ($spawn) {
$run_cron = !array_key_exists('n', $options) && !array_key_exists('no_cron', $options);
Worker::processQueue($run_cron);
$process = DI::process()->create(getmypid());
Worker::unclaimProcess();
Worker::processQueue($run_cron, $process);
DI::process()->end();
Worker::unclaimProcess($process);
DI::process()->delete($process);