mirror of
https://github.com/System-End/highway.git
synced 2026-04-19 16:28:24 +00:00
Setup goodjob cron for cloning job
This commit is contained in:
parent
42be4286f6
commit
5ae122cd54
1 changed files with 9 additions and 0 deletions
|
|
@ -6,4 +6,13 @@ Rails.application.configure do
|
|||
config.good_job.cleanup_interval_seconds = 3600
|
||||
|
||||
config.good_job.execution_mode = :async
|
||||
|
||||
config.good_job.enable_cron = Rails.env.production?
|
||||
config.good_job.cron_graceful_restart_period = 1.minute
|
||||
config.good_job.cron = {
|
||||
clone_projects: {
|
||||
cron: "*/10 * * * *",
|
||||
class: "CloneProjectsJob"
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue