Save job pid to the database and sing sigint to kill it when stopping so it stops immediatly.

This commit is contained in:
Jaret Burkett
2026-03-26 09:10:37 -06:00
parent 89d2090962
commit 4df3b0463f
4 changed files with 49 additions and 8 deletions

View File

@@ -35,6 +35,7 @@ model Job {
info String @default("")
speed_string String @default("")
queue_position Int @default(0)
pid Int?
@@index([status])
@@index([gpu_ids])