@@ -95,7 +95,7 @@ class Config
95
95
* and at the same interval for Single mode (but only at the correct interval)
96
96
* @var bool
97
97
*/
98
- private $ restartImmediately ;
98
+ private $ restartAfterFail ;
99
99
/**
100
100
* Minimum interval in minutes for task's addInterval method. It is made due to the fact that the scheduler
101
101
* does not guarantee the start of the task at the exact time, and too small interval can lead to a missed task launch.
@@ -131,7 +131,7 @@ class Config
131
131
* @param int $defaultLockResetTimeout Locking reset timeout in minutes (to prevent freezing tasks).
132
132
* @param int $defaultTries The number of attempts to execute the task in case of an error.
133
133
* @param int $defaultTryDelay Delay before new try.
134
- * @param bool $restartImmediately If true, failed task will be restarted without delay
134
+ * @param bool $restartAfterFail If true, failed task will be restarted without delay
135
135
* @param int $minimumIntervalLength Minimum interval in minutes for task's addInterval method.
136
136
* ATTENTION: a low value can cause to skipped tasks, change at your own risk.
137
137
* @throws Exception
@@ -152,7 +152,7 @@ public function __construct(
152
152
int $ defaultLockResetTimeout = 360 ,
153
153
int $ defaultTries = 1 ,
154
154
int $ defaultTryDelay = 0 ,
155
- bool $ restartImmediately = false ,
155
+ bool $ restartAfterFail = false ,
156
156
int $ minimumIntervalLength = 30
157
157
)
158
158
{
@@ -195,7 +195,7 @@ public function __construct(
195
195
}
196
196
$ this ->defaultTryDelay = $ defaultTryDelay ;
197
197
198
- $ this ->restartImmediately = $ restartImmediately ;
198
+ $ this ->restartAfterFail = $ restartAfterFail ;
199
199
200
200
if ($ minimumIntervalLength <= 0 ) {
201
201
throw new Exception ('The minimum interval must be greater than zero. ' );
@@ -354,9 +354,9 @@ public function getDefaultTryDelay(): int
354
354
* and at the same interval for Single mode (but only at the correct interval)
355
355
* @return bool
356
356
*/
357
- public function getRestartImmediately (): bool
357
+ public function getRestartAfterFail (): bool
358
358
{
359
- return $ this ->restartImmediately ;
359
+ return $ this ->restartAfterFail ;
360
360
}
361
361
362
362
/**
0 commit comments