src/Api/ClipGenerationJob.cs
+8
-1
diff --git a/src/Api/ClipGenerationJob.cs b/src/Api/ClipGenerationJob.cs
index 2df4c12..590a026 100644
@@ -22,7 +22,14 @@ public sealed class ClipGenerationJob(
public async Task Execute(IJobExecutionContext context)
{
logger.LogDebug("Running clip generation job");
_ = await clipGenerator.Generate(context.CancellationToken);
try
{
_ = await clipGenerator.Generate(context.CancellationToken);
}
catch (Exception ex) when (ex is not TaskCanceledException)
{
throw new JobExecutionException(ex, refireImmediately: true);
}
await context.Scheduler.ScheduleJob(
TriggerBuilder