e
This commit is contained in:
+3
-1
@@ -66,7 +66,9 @@ class Queue extends \Snowflake\Process\Process
|
|||||||
if (empty($data)) {
|
if (empty($data)) {
|
||||||
Coroutine::sleep(0.05);
|
Coroutine::sleep(0.05);
|
||||||
} else {
|
} else {
|
||||||
Coroutine::create([$this, 'scheduler'], $data);
|
Coroutine::create(function ($params) {
|
||||||
|
$this->scheduler($params);
|
||||||
|
}, $data);
|
||||||
}
|
}
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$this->application->error($exception->getMessage());
|
$this->application->error($exception->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user