diff --git a/const.go b/const.go index 5f8696c..faab895 100644 --- a/const.go +++ b/const.go @@ -1,3 +1,3 @@ package gojobs -const Version = "1.0.48" +const Version = "1.0.49" diff --git a/jobs_gorm_redis_ping.go b/jobs_gorm_redis_ping.go index b1fb133..9d858a3 100644 --- a/jobs_gorm_redis_ping.go +++ b/jobs_gorm_redis_ping.go @@ -15,4 +15,7 @@ func (j *JobsGorm) Ping(ctx context.Context) { log.Println("JOBS心跳", j.config.cornKeyIp, j.config.outsideIp, result, err) } }) + c.Start() + defer c.Stop() + select {} }