Commit dfb0d45d authored by Shinya Maeda's avatar Shinya Maeda

Rename worker to ArchiveTracesCronWorker

parent 96d00884
......@@ -17,7 +17,7 @@
- cronjob:stuck_ci_jobs
- cronjob:stuck_import_jobs
- cronjob:stuck_merge_jobs
- cronjob:ci_rescue_stale_live_trace
- cronjob:ci_archive_traces_cron
- cronjob:trending_projects
- cronjob:issue_due_scheduler
......
module Ci
class RescueStaleLiveTraceWorker
class ArchiveTracesCronWorker
include ApplicationWorker
include CronjobQueue
......
......@@ -289,9 +289,9 @@ Settings.cron_jobs['repository_archive_cache_worker']['job_class'] = 'Repository
Settings.cron_jobs['import_export_project_cleanup_worker'] ||= Settingslogic.new({})
Settings.cron_jobs['import_export_project_cleanup_worker']['cron'] ||= '0 * * * *'
Settings.cron_jobs['import_export_project_cleanup_worker']['job_class'] = 'ImportExportProjectCleanupWorker'
Settings.cron_jobs['ci_rescue_stale_live_trace_worker'] ||= Settingslogic.new({})
Settings.cron_jobs['ci_rescue_stale_live_trace_worker']['cron'] ||= '17 * * * *'
Settings.cron_jobs['ci_rescue_stale_live_trace_worker']['job_class'] = 'Ci::RescueStaleLiveTraceWorker'
Settings.cron_jobs['ci_archive_traces_cron_worker'] ||= Settingslogic.new({})
Settings.cron_jobs['ci_archive_traces_cron_worker']['cron'] ||= '17 * * * *'
Settings.cron_jobs['ci_archive_traces_cron_worker']['job_class'] = 'Ci::ArchiveTracesCronWorker'
Settings.cron_jobs['requests_profiles_worker'] ||= Settingslogic.new({})
Settings.cron_jobs['requests_profiles_worker']['cron'] ||= '0 0 * * *'
Settings.cron_jobs['requests_profiles_worker']['job_class'] = 'RequestsProfilesWorker'
......
require 'spec_helper'
describe Ci::RescueStaleLiveTraceWorker do
describe Ci::ArchiveTracesCronWorker do
subject { described_class.new.perform }
before do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment