This commit is contained in:
shoopea 2020-06-29 10:48:30 +02:00
parent 4bad18ecdf
commit 9c348fc891

3
job.go
View File

@ -2090,6 +2090,7 @@ func jobGetStash(j Job) {
p.CleanupMsg = append(p.CleanupMsg, *m) p.CleanupMsg = append(p.CleanupMsg, *m)
setJobPayloadJSON(j.ID64, p) setJobPayloadJSON(j.ID64, p)
rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC()) rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
fmt.Printf("jobGetStash : delete exchange req for current client\n")
return return
} else if rule.MsgTypeID64 == cacheObjSubType[`msg_exchange_ack`] { } else if rule.MsgTypeID64 == cacheObjSubType[`msg_exchange_ack`] {
p.CleanupMsg = append(p.CleanupMsg, *m) p.CleanupMsg = append(p.CleanupMsg, *m)
@ -2104,10 +2105,12 @@ func jobGetStash(j Job) {
break break
} }
} }
fmt.Printf("jobGetStash : clearing trigger for next client\n")
j.Trigger = 0 j.Trigger = 0
} else if rule.MsgTypeID64 == cacheObjSubType[`msg_busy`] { } else if rule.MsgTypeID64 == cacheObjSubType[`msg_busy`] {
p.CleanupMsg = append(p.CleanupMsg, *m) p.CleanupMsg = append(p.CleanupMsg, *m)
j.Trigger = 0 j.Trigger = 0
fmt.Printf("jobGetStash : client busy => clearing trigger for next client\n")
} }
} }
} }