Merge pull request #7584 from wy65701436/fix-gc-schedule

Add gc parameters when to update gc schedule
This commit is contained in:
Steven Zou 2019-04-28 21:08:46 +08:00 committed by GitHub
commit 17aaa95c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,9 @@ func (gc *GCAPI) Put() {
return
}
ajr.Name = common_job.ImageGC
ajr.Parameters = map[string]interface{}{
"redis_url_reg": os.Getenv("_REDIS_URL_REG"),
}
gc.updateSchedule(ajr)
}