getCollectionId
This commit is contained in:
parent
97703b0332
commit
07bfe3823c
3 changed files with 11 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue