Skip to content

Commit 878d083

Browse files
committed
videos with missing config_id should stay failed.
1 parent 7b332d7 commit 878d083

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cronjobs/opencast_worker.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ public function execute($last_result, $parameters = array())
5959

6060
if (empty($video->config_id)) {
6161
echo 'No config_id for video '. $video->id. "\n";
62-
$task->delete();
62+
$task->state = 'failed';
63+
$task->data = json_encode(['error' => 'No config_id for video '. $video->id]);
64+
$task->store();
6365
continue;
6466
}
6567

0 commit comments

Comments
 (0)