File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,17 +216,17 @@ public function getStats() : array {
216216 * @return bool Success
217217 */
218218 public function cleanOldJobs (array $ capabilities ) : bool {
219- $ success = true ;
219+ $ success = true ;
220220 foreach ($ capabilities as $ task ) {
221221 list (, $ name ) = pluginSplit ($ task ['name ' ]);
222222 $ conditions = [
223223 'task ' => $ name ,
224224 'completed < ' => date ('Y-m-d H:i:s ' , time () - $ task ['cleanupTimeout ' ])
225225 ];
226- if (!$ this ->deleteAll ($ conditions , false )) {
227- $ success = false ;
228- break ;
229- }
226+ if (!$ this ->deleteAll ($ conditions , false )) {
227+ $ success = false ;
228+ break ;
229+ }
230230 }
231231
232232 return $ success ;
@@ -239,17 +239,17 @@ public function cleanOldJobs(array $capabilities) : bool {
239239 * @return bool Success
240240 */
241241 public function cleanFailedJobs (array $ capabilities ) : bool {
242- $ success = true ;
242+ $ success = true ;
243243 foreach ($ capabilities as $ task ) {
244244 list (, $ name ) = pluginSplit ($ task ['name ' ]);
245245 $ conditions = [
246246 'task ' => $ name ,
247247 'failed_count > ' => $ task ['retries ' ]
248248 ];
249- if (!$ this ->deleteAll ($ conditions , false )) {
250- $ success = false ;
251- break ;
252- }
249+ if (!$ this ->deleteAll ($ conditions , false )) {
250+ $ success = false ;
251+ break ;
252+ }
253253 }
254254
255255 return $ success ;
You can’t perform that action at this time.
0 commit comments