diff options
author | Alberto Almagro <alberto.almagro@rakuten.com> | 2018-03-19 21:25:39 +0100 |
---|---|---|
committer | Alberto Almagro <alberto.almagro@rakuten.com> | 2018-03-19 21:27:16 +0100 |
commit | 6ef720791d6532a107f4777edfe1d708b6b9c068 (patch) | |
tree | c6ce9a6aabe6654af03384bd8de7b4a1b71ef3b1 /activejob/test/support/integration/adapters | |
parent | 538463bce782e58ea72d130315cc510dab50777d (diff) | |
download | rails-6ef720791d6532a107f4777edfe1d708b6b9c068.tar.gz rails-6ef720791d6532a107f4777edfe1d708b6b9c068.tar.bz2 rails-6ef720791d6532a107f4777edfe1d708b6b9c068.zip |
Remove support for Qu gem.
Reasons are that the Qu gem wasn't compatible since Rails 5.1,
gem development was stopped in 2014 and maintainers have
confirmed its demise. See issue #32273
Diffstat (limited to 'activejob/test/support/integration/adapters')
-rw-r--r-- | activejob/test/support/integration/adapters/qu.rb | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/activejob/test/support/integration/adapters/qu.rb b/activejob/test/support/integration/adapters/qu.rb deleted file mode 100644 index 67db03e279..0000000000 --- a/activejob/test/support/integration/adapters/qu.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -module QuJobsManager - def setup - require "qu-rails" - require "qu-redis" - ActiveJob::Base.queue_adapter = :qu - ENV["REDISTOGO_URL"] = "redis://127.0.0.1:6379/12" - backend = Qu::Backend::Redis.new - backend.namespace = "active_jobs_int_test" - Qu.backend = backend - Qu.logger = Rails.logger - Qu.interval = 0.5 - unless can_run? - puts "Cannot run integration tests for qu. To be able to run integration tests for qu you need to install and start redis.\n" - exit - end - end - - def clear_jobs - Qu.clear "integration_tests" - end - - def start_workers - @thread = Thread.new { Qu::Worker.new("integration_tests").start } - end - - def stop_workers - @thread.kill - end - - def can_run? - begin - Qu.backend.connection.client.connect - rescue - return false - end - true - end -end |