From 63fee081e6cc9fc36b22e49ca38f7183caf114df Mon Sep 17 00:00:00 2001 From: Glax Date: Fri, 16 May 2025 21:18:46 +0200 Subject: [PATCH] Catch all Exceptions in Job --- API/Schema/Jobs/Job.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/Schema/Jobs/Job.cs b/API/Schema/Jobs/Job.cs index 100c536..7b601b5 100644 --- a/API/Schema/Jobs/Job.cs +++ b/API/Schema/Jobs/Job.cs @@ -81,7 +81,7 @@ public abstract class Job Log.Info($"Job {JobId} completed. Generated {newJobs.Length} new jobs."); return newJobs; } - catch (DbUpdateException e) + catch (Exception e) { this.state = JobState.Failed; Log.Error($"Failed to run job {JobId}", e);