test
This commit is contained in:
parent
b53b769386
commit
0431320a72
@ -630,6 +630,7 @@ func JobWorker(id int, jobs <-chan Job) {
|
||||
//log.Printf("jobWorker[" + strconv.Itoa(id) + "] : Starting.")
|
||||
// FIXME : discard timed out jobs
|
||||
for j := range jobs {
|
||||
log.Printf("JobWorker[%d] : Starting job %d (timeout : %s).\n", id, j.ID64, j.Timeout.Format(time.RFC3339))
|
||||
if time.Now().UTC().Before(j.Timeout) {
|
||||
switch j.JobTypeID64 {
|
||||
case cacheObjSubType[`job_rescan_msg`]:
|
||||
|
Loading…
Reference in New Issue
Block a user