mirror of
https://github.com/C9Glax/tranga.git
synced 2025-05-22 06:03:01 +02:00
Catch all Exceptions in Job
This commit is contained in:
parent
e45b72dcf9
commit
63fee081e6
@ -81,7 +81,7 @@ public abstract class Job
|
|||||||
Log.Info($"Job {JobId} completed. Generated {newJobs.Length} new jobs.");
|
Log.Info($"Job {JobId} completed. Generated {newJobs.Length} new jobs.");
|
||||||
return newJobs;
|
return newJobs;
|
||||||
}
|
}
|
||||||
catch (DbUpdateException e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
this.state = JobState.Failed;
|
this.state = JobState.Failed;
|
||||||
Log.Error($"Failed to run job {JobId}", e);
|
Log.Error($"Failed to run job {JobId}", e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user