diff options
author | James Lopez <james@jameslopez.es> | 2017-03-24 12:08:34 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-04-05 16:11:51 +0200 |
commit | 58371efbb0bd051d3a82f82acac98ad4692efeb4 (patch) | |
tree | 226bfb1a920a6344d6efb3b0357473412aa9dade /config/initializers | |
parent | 7196adaaa4ce5aa259d285dbca6aa98f4deb046b (diff) | |
download | gitlab-ce-58371efbb0bd051d3a82f82acac98ad4692efeb4.tar.gz |
Periodically mark projects that are stuck in importing as failed
Adds import jid to projects
Refactor middleware to set custom expiration time via sidekiq options
Add completed_jids option to sidekiq status and a few other changes
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/1_settings.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index e8fef0000c1..f7cae84088e 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -349,6 +349,9 @@ Settings.cron_jobs['trending_projects_worker']['job_class'] = 'TrendingProjectsW Settings.cron_jobs['remove_unreferenced_lfs_objects_worker'] ||= Settingslogic.new({}) Settings.cron_jobs['remove_unreferenced_lfs_objects_worker']['cron'] ||= '20 0 * * *' Settings.cron_jobs['remove_unreferenced_lfs_objects_worker']['job_class'] = 'RemoveUnreferencedLfsObjectsWorker' +Settings.cron_jobs['stuck_import_jobs_worker'] ||= Settingslogic.new({}) +Settings.cron_jobs['stuck_import_jobs_worker']['cron'] ||= '15 * * * *' +Settings.cron_jobs['stuck_import_jobs_worker']['job_class'] = 'StuckImportJobsWorker' # # GitLab Shell |