Add a possibility to schedule next step by index

[MAILPOET-5586]
This commit is contained in:
Jan Jakes
2023-09-14 14:55:00 +02:00
committed by Aschepikov
parent 8720d8881f
commit 72ce5fb569
3 changed files with 38 additions and 5 deletions

View File

@@ -27,6 +27,10 @@ class StepRunController {
return $this->stepScheduler->scheduleNextStep($this->stepRunArgs, $timestamp);
}
public function scheduleNextStepByIndex(int $nextStepIndex, int $timestamp = null): int {
return $this->stepScheduler->scheduleNextStepByIndex($this->stepRunArgs, $nextStepIndex, $timestamp);
}
public function hasScheduledNextStep(): bool {
return $this->stepScheduler->hasScheduledNextStep($this->stepRunArgs);
}