Skip to content
Snippets Groups Projects
Commit 42bc2f27 authored by Max Orefice's avatar Max Orefice :three: Committed by Max Orefice
Browse files

Remove PartitionCreationWorker

parent 4a1b98d6
No related branches found
No related tags found
2 merge requests!158455Backport Release Environments notification pipeline change to 16.11,!149115Remove PartitionCreationWorker
......@@ -770,7 +770,6 @@ Gitlab/NamespacedClass:
- 'app/workers/pages_domain_verification_cron_worker.rb'
- 'app/workers/pages_domain_verification_worker.rb'
- 'app/workers/pages_worker.rb'
- 'app/workers/partition_creation_worker.rb'
- 'app/workers/pipeline_hooks_worker.rb'
- 'app/workers/pipeline_metrics_worker.rb'
- 'app/workers/pipeline_notification_worker.rb'
......
......@@ -3668,7 +3668,6 @@ RSpec/NamedSubject:
- 'spec/workers/packages/npm/create_metadata_cache_worker_spec.rb'
- 'spec/workers/packages/nuget/extraction_worker_spec.rb'
- 'spec/workers/packages/rubygems/extraction_worker_spec.rb'
- 'spec/workers/partition_creation_worker_spec.rb'
- 'spec/workers/pipeline_notification_worker_spec.rb'
- 'spec/workers/pipeline_process_worker_spec.rb'
- 'spec/workers/pipeline_schedule_worker_spec.rb'
......
......@@ -205,7 +205,6 @@ SidekiqLoadBalancing/WorkerDataConsistency:
- 'app/workers/pages_domain_verification_cron_worker.rb'
- 'app/workers/pages_domain_verification_worker.rb'
- 'app/workers/pages_worker.rb'
- 'app/workers/partition_creation_worker.rb'
- 'app/workers/personal_access_tokens/expired_notification_worker.rb'
- 'app/workers/personal_access_tokens/expiring_worker.rb'
- 'app/workers/pipeline_metrics_worker.rb'
......
......@@ -1014,7 +1014,6 @@ Style/InlineDisableAnnotation:
- 'app/workers/pages_domain_verification_cron_worker.rb'
- 'app/workers/pages_domain_verification_worker.rb'
- 'app/workers/pages_worker.rb'
- 'app/workers/partition_creation_worker.rb'
- 'app/workers/pause_control/resume_worker.rb'
- 'app/workers/personal_access_tokens/expired_notification_worker.rb'
- 'app/workers/personal_access_tokens/expiring_worker.rb'
......
......@@ -714,15 +714,6 @@
:weight: 1
:idempotent: false
:tags: []
- :name: cronjob:partition_creation
:worker_name: PartitionCreationWorker
:feature_category: :database
:has_external_dependencies: false
:urgency: :low
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: cronjob:pause_control_resume
:worker_name: PauseControl::ResumeWorker
:feature_category: :global_search
......
# frozen_string_literal: true
class PartitionCreationWorker
include ApplicationWorker
data_consistency :always
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :database
idempotent!
def perform
# This worker has been removed in favor of Database::PartitionManagementWorker
Database::PartitionManagementWorker.new.perform
end
end
......@@ -9459,7 +9459,6 @@
- './spec/workers/pages_domain_verification_cron_worker_spec.rb'
- './spec/workers/pages_domain_verification_worker_spec.rb'
- './spec/workers/pages_worker_spec.rb'
- './spec/workers/partition_creation_worker_spec.rb'
- './spec/workers/personal_access_tokens/expired_notification_worker_spec.rb'
- './spec/workers/personal_access_tokens/expiring_worker_spec.rb'
- './spec/workers/pipeline_hooks_worker_spec.rb'
......
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe PartitionCreationWorker, feature_category: :database do
subject { described_class.new.perform }
let(:management_worker) { double }
describe '#perform' do
it 'forwards to the Database::PartitionManagementWorker' do
expect(Database::PartitionManagementWorker).to receive(:new).and_return(management_worker)
expect(management_worker).to receive(:perform)
subject
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment