[cron-job] allow a cronjob to pass data from one execution to another

When a cronjob is executed, it may return an array of data.

This data will be passed as parameter on the next execution
This commit is contained in:
2023-07-12 11:36:26 +02:00
parent e38b369149
commit 3f66e1a862
7 changed files with 137 additions and 11 deletions

View File

@@ -39,8 +39,10 @@ readonly class AccompanyingPeriodStepChangeCronjob implements CronJobInterface
return 'accompanying-period-step-change';
}
public function run(): void
public function run(array $lastExecutionData): null|array
{
($this->requestor)();
return null;
}
}