File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -464,11 +464,11 @@ public function cleanOldJobs(array $capabilities): void
464464 list ($ plugin , $ name ) = pluginSplit ($ task ['name ' ]);
465465 $ conditions ['OR ' ][] = [
466466 'task ' => $ name ,
467- 'completed < ' => date ('Y-m-d H:i:s ' , time () - $ task ['cleanupTimeout ' ])
467+ 'completed < ' => date ('Y-m-d H:i:s ' , time () - ( int ) $ task ['cleanupTimeout ' ])
468468 ];
469469 }
470470
471- $ this ->deleteAll ($ conditions, false );
471+ $ this ->deleteAll ($ conditions );
472472 }
473473
474474 /**
@@ -490,7 +490,7 @@ public function cleanFailedJobs(array $capabilities): void
490490 ];
491491 }
492492
493- $ this ->deleteAll ($ conditions, false );
493+ $ this ->deleteAll ($ conditions );
494494 }
495495
496496 /**
Original file line number Diff line number Diff line change @@ -285,7 +285,9 @@ public function clean(): void
285285 *
286286 * @return void
287287 */
288- public function clean_failed () {
288+ //@codingStandardsIgnoreLine
289+ public function clean_failed (): void
290+ {
289291 $ this ->out (__d ('queue ' , 'Deleting failed jobs, that have had maximum worker retries. ' ));
290292 $ this ->QueuedTasks ->cleanFailedJobs ($ this ->_getTaskConf ());
291293 }
You can’t perform that action at this time.
0 commit comments