Bug fix
This commit is contained in:
parent
b031e13997
commit
c13589c1ea
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,8 @@ use Utopia\Database\Query;
|
||||||
use Swoole\Timer;
|
use Swoole\Timer;
|
||||||
use Utopia\Database\Database;
|
use Utopia\Database\Database;
|
||||||
|
|
||||||
|
use function Swoole\Coroutine\run;
|
||||||
|
|
||||||
class Schedule extends Action
|
class Schedule extends Action
|
||||||
{
|
{
|
||||||
const FUNCTION_UPDATE_TIMER = 10; //seconds
|
const FUNCTION_UPDATE_TIMER = 10; //seconds
|
||||||
|
@ -96,7 +98,7 @@ class Schedule extends Action
|
||||||
|
|
||||||
Console::success("Starting timers at " . DateTime::now());
|
Console::success("Starting timers at " . DateTime::now());
|
||||||
|
|
||||||
Co\run(
|
run(
|
||||||
function () use ($dbForConsole, &$schedules, &$lastSyncUpdate, $getSchedule) {
|
function () use ($dbForConsole, &$schedules, &$lastSyncUpdate, $getSchedule) {
|
||||||
/**
|
/**
|
||||||
* The timer synchronize $schedules copy with database collection.
|
* The timer synchronize $schedules copy with database collection.
|
||||||
|
|
Loading…
Reference in a new issue