Skip to content

Commit

Permalink
Match queues to class name
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-collier committed Jan 25, 2023
1 parent e6aa6ab commit af3065d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/jobs/replication/delivery_dispatcher_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module Replication
# the VM is updated to a new vesrion). Therefore, we receive the zip
# metadata from the process that actually created the zip file.
class DeliveryDispatcherJob < Replication::ZipPartJobBase
queue_as :replication_plexer
queue_as :replication_delivery_dispatcher

before_enqueue do |job|
job.zip_info_check!(job.arguments.fourth)
Expand Down
2 changes: 1 addition & 1 deletion app/jobs/replication/s3_east_delivery_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Replication
# Please update the configs for the various environments if it's renamed or moved.
# @note This name is slightly misleading, as this class solely deals with AWS US East 1 endpoint
class S3EastDeliveryJob < Replication::DeliveryJobBase
queue_as :replication_aws_us_east_1_delivery
queue_as :replication_s3_east_delivery

# perform method is defined in DeliveryJobBase

Expand Down
2 changes: 1 addition & 1 deletion app/jobs/replication/s3_west_delivery_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Replication
# Please update the configs for the various environments if it's renamed or moved.
# @note This name is slightly misleading, as this class solely deals with AWS US West 2 endpoint
class S3WestDeliveryJob < Replication::DeliveryJobBase
queue_as :replication_aws_us_west_2_delivery
queue_as :replication_s3_west_delivery

# perform method is defined in DeliveryJobBase

Expand Down
2 changes: 1 addition & 1 deletion spec/jobs/replication/s3_east_delivery_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
end

it 'uses its own queue' do
expect(described_class.new.queue_name).to eq 'replication_aws_us_east_1_delivery'
expect(described_class.new.queue_name).to eq 'replication_s3_east_delivery'
end
end
2 changes: 1 addition & 1 deletion spec/jobs/replication/s3_west_delivery_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
end

it 'uses its own queue' do
expect(described_class.new.queue_name).to eq 'replication_aws_us_west_2_delivery'
expect(described_class.new.queue_name).to eq 'replication_s3_west_delivery'
end
end

0 comments on commit af3065d

Please sign in to comment.