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