Skip to content

Commit

Permalink
videos with missing config_id should stay failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Feb 7, 2025
1 parent 7b332d7 commit 878d083
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cronjobs/opencast_worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public function execute($last_result, $parameters = array())

if (empty($video->config_id)) {
echo 'No config_id for video '. $video->id. "\n";
$task->delete();
$task->state = 'failed';
$task->data = json_encode(['error' => 'No config_id for video '. $video->id]);
$task->store();
continue;
}

Expand Down

0 comments on commit 878d083

Please sign in to comment.