diff --git a/src/Appwrite/Platform/Tasks/ScheduleBase.php b/src/Appwrite/Platform/Tasks/ScheduleBase.php index 026656a729..cb02ec60fd 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleBase.php +++ b/src/Appwrite/Platform/Tasks/ScheduleBase.php @@ -34,14 +34,12 @@ abstract class ScheduleBase extends Action $this->connections = new Connections(); $type = static::getSupportedResource(); - go(function () use ($type) { - $this - ->desc("Execute {$type}s scheduled in Appwrite") - ->inject('pools') - ->inject('getConsoleDB') - ->inject('getProjectDB') - ->callback(fn (array $pools, callable $getConsoleDB, callable $getProjectDB) => $this->action($pools, $getConsoleDB, $getProjectDB)); - }); + $this + ->desc("Execute {$type}s scheduled in Appwrite") + ->inject('pools') + ->inject('getConsoleDB') + ->inject('getProjectDB') + ->callback(fn (array $pools, callable $getConsoleDB, callable $getProjectDB) => $this->action($pools, $getConsoleDB, $getProjectDB)); } /**