Save job pid to the database and sing sigint to kill it when stopping so it stops immediatly.
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user