test pillage on off

This commit is contained in:
shoopea 2020-02-10 12:33:27 +08:00
parent 74bfb46217
commit 58a4cf633b

8
job.go
View File

@ -482,6 +482,14 @@ func jobPillage(j Job) {
err = json.Unmarshal(j.Payload, &r)
logOnError(err, "jobPillage : Unmarshal payload")
clt, _ := getLockedClient(j.UserID64, false)
clt.Mux.Unlock()
if !clt.Config.InterceptPillage {
err = setJobDone(j.ID64)
logOnError(err, "jobSetDone : setJobDone")
return
}
// check if we have a acknowledgment of go or a timeout within 3m30 of the PillageInc from the Job
ids := getSQLListID64(`SELECT ox.id
FROM obj ox