From d4eade7c0225b6f93f3c9f059946ec9a4acac371 Mon Sep 17 00:00:00 2001 From: imxyb Date: Tue, 30 Apr 2019 14:44:31 +0800 Subject: [PATCH] Not display in web when job limit. Signed-off-by: imxyb --- job.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/job.go b/job.go index 4006a13..7b4b442 100644 --- a/job.go +++ b/job.go @@ -174,7 +174,9 @@ func (j *Job) limit() bool { count := atomic.AddInt64(j.Count, 1) if j.Parallels < count { atomic.AddInt64(j.Count, -1) - j.Fail(time.Now(), fmt.Sprintf("job[%s] running on[%s] running:[%d]", j.Key(), j.runOn, count)) + // see https://github.com/shunfei/cronsun/issues/105 + log.Warnf("job[%s] running on[%s] running:[%d]", j.Key(), j.runOn, count) + //j.Fail(time.Now(), fmt.Sprintf("job[%s] running on[%s] running:[%d]", j.Key(), j.runOn, count)) return true }