1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

getCollectionId

This commit is contained in:
fogelito 2024-05-29 18:59:10 +03:00
parent 97703b0332
commit 07bfe3823c
3 changed files with 11 additions and 0 deletions

View file

@ -24,6 +24,7 @@ abstract class ScheduleBase extends Action
abstract public static function getName(): string;
abstract public static function getSupportedResource(): string;
abstract public static function getCollectionId(): string;
abstract protected function enqueueResources(Group $pools, Database $dbForConsole, callable $getProjectDB):void;
public function __construct()

View file

@ -26,6 +26,11 @@ class ScheduleFunctions extends ScheduleBase
return 'function';
}
public static function getCollectionId(): string
{
return 'functions';
}
protected function enqueueResources(Group $pools, Database $dbForConsole, callable $getProjectDB): void
{
$timerStart = \microtime(true);

View file

@ -21,6 +21,11 @@ class ScheduleMessages extends ScheduleBase
return 'message';
}
public static function getCollectionId(): string
{
return 'messages';
}
protected function enqueueResources(Group $pools, Database $dbForConsole, callable $getProjectDB): void
{
foreach ($this->schedules as $schedule) {