|
|
@ -88,7 +88,7 @@ class OC_BackgroundJob_Worker{ |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
$tasks = OC_BackgroundJob_ScheduledTask::all(); |
|
|
|
$tasks = OC_BackgroundJob_ScheduledTask::all(); |
|
|
|
if( length( $tasks )){ |
|
|
|
if( count( $tasks )){ |
|
|
|
$task = $tasks[0]; |
|
|
|
$task = $tasks[0]; |
|
|
|
// delete job before we execute it. This prevents endless loops |
|
|
|
// delete job before we execute it. This prevents endless loops |
|
|
|
// of failing jobs. |
|
|
|
// of failing jobs. |
|
|
|