Sets the resubmission of the current step.
By default, a system activity is executed every 10 seconds. JobRouter therefore recommends using this feature to reduce load on the server and systems.
Parameter |
Type |
Description |
|---|---|---|
$resubmissionTime |
mixed |
Contains a number (time interval) or a date as string, depending on $resubmissionType |
$resubmissionType |
string |
Resubmission type. Can contain the following values: s: seconds, m: minutes, h: hours, d: Date (format Y-m-d H:i:s, e.g. 2021-01-20 13:23:45) |
Examples:
$this->setResubmission(10, 'm');
$this->setResubmission(1, 'h');
$this->setResubmission('2021-01-20 13:23:45’, 'd');
Please note: If the resubmission is set via the API, then it will also be applied to the current step and step status (step_status).