mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-12 19:36:08 +02:00
Only update jobs that still exist
Some checks failed
Docker Image CI / build (push) Has been cancelled
Some checks failed
Docker Image CI / build (push) Has been cancelled
This commit is contained in:
parent
45a8f7a038
commit
5012bbb2eb
@ -124,7 +124,8 @@ public static class Tranga
|
|||||||
foreach ((Thread thread, Job job) thread in removeFromThreadsList)
|
foreach ((Thread thread, Job job) thread in removeFromThreadsList)
|
||||||
{
|
{
|
||||||
RunningJobs.Remove(thread.thread);
|
RunningJobs.Remove(thread.thread);
|
||||||
context.Jobs.Update(thread.job);
|
if(context.Jobs.Find(thread.job.JobId) is not null)
|
||||||
|
context.Jobs.Update(thread.job);
|
||||||
}
|
}
|
||||||
|
|
||||||
context.SaveChanges();
|
context.SaveChanges();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user