resque_manager 3.3.6 → 3.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9877edacddc506d38f318a37b6a77b11d69756b1
4
- data.tar.gz: a40b05bc75a2d8cd7cebf9c6f5849ad41bb3fac5
3
+ metadata.gz: 6cd9144b2c8a2a3dacf5942cec7489cc146a3427
4
+ data.tar.gz: b83670348e46491eb047269883d9efdc2ab917eb
5
5
  SHA512:
6
- metadata.gz: f52f46cf619fb7d44729e4a72d6fa3ed1e58db42a561925b8b8713754c57fa0c28b180d0cd669835fcdb23b2ed1faa45766c8dbb8e4c6d14cf92f9c20e10cc88
7
- data.tar.gz: 8dd9d47770724c52c1b84a21f529e56f54f452c7d2b496270f7b7ba0923f229204794f91246ce53ace52ab06d536046c3c73ddb89e0a63e1196c45db4f697b6c
6
+ metadata.gz: 631982dace69765b08c597b328bc37cdb0f777a493745848e3a9e7d1446cb2dae7cc05493bff1f50b99ec9cd7da87e6039892ab295a78f12636ccb615d963345
7
+ data.tar.gz: 01390c8775c37fc1b454202313742705a8e76ac1c01a4e3d9e74c9daeb5af491caf6253b22558d5dcb3405eecbbc4469aee22b5e4e7bd54bb999392791c7b61d
@@ -81,7 +81,7 @@ Capistrano::Configuration.instance(:must_exist).load do
81
81
  #The kill command used to be done directly in the cap task, but since workers can now live in multiple apps, we need to send
82
82
  #the correct signal based on the worker's platform which has to be done in the rake task."
83
83
  hosts = ENV['host'] || find_servers_for_task(current_task).collect { |s| s.host }
84
- run("cd #{get_worker_path}; nohup #{get_rake} RAILS_ENV=#{stage} resque:quit_worker pid=#{ENV['pid']}", :hosts => hosts)
84
+ run("cd #{get_worker_path}; #{get_rake} RAILS_ENV=#{stage} resque:quit_worker pid=#{ENV['pid']}", :hosts => hosts)
85
85
  end
86
86
  end
87
87
 
@@ -144,7 +144,7 @@ Capistrano::Configuration.instance(:must_exist).load do
144
144
  default_run_options[:pty] = true
145
145
  rake = fetch(:rake, "rake")
146
146
  #pass the rake options to the rake task so the workers can be started with the options.
147
- run("cd #{get_worker_path}; RAILS_ENV=#{stage} RAKE_WITH_OPTS='#{get_rake}'nohup #{rake} resque:restart_workers")
147
+ run("cd #{get_worker_path}; RAILS_ENV=#{stage} RAKE_WITH_OPTS='#{get_rake}' #{rake} resque:restart_workers")
148
148
  end
149
149
 
150
150
  # ====================================
@@ -156,7 +156,7 @@ Capistrano::Configuration.instance(:must_exist).load do
156
156
  default_run_options[:pty] = true
157
157
  hosts = ENV['host'] || find_servers_for_task(current_task).collect { |s| s.host }
158
158
  rake = fetch(:rake, "rake")
159
- run("cd #{get_worker_path}; nohup #{rake} RAILS_ENV=#{stage} resque:scheduler", :hosts => hosts)
159
+ run("cd #{get_worker_path}; #{rake} RAILS_ENV=#{stage} resque:scheduler", :hosts => hosts)
160
160
  end
161
161
 
162
162
  desc "Gracefully kill the scheduler on a server. arg: host=ip"
@@ -166,7 +166,7 @@ Capistrano::Configuration.instance(:must_exist).load do
166
166
  else
167
167
  hosts = ENV['host'] || find_servers_for_task(current_task).collect { |s| s.host }
168
168
  rake = fetch(:rake, "rake")
169
- run("cd #{get_worker_path}; nohup #{rake} RAILS_ENV=#{stage} resque:quit_scheduler", :hosts => hosts)
169
+ run("cd #{get_worker_path}; #{rake} RAILS_ENV=#{stage} resque:quit_scheduler", :hosts => hosts)
170
170
  end
171
171
  end
172
172
 
@@ -1,3 +1,3 @@
1
1
  module ResqueManager
2
- VERSION = "3.3.6"
2
+ VERSION = "3.3.7"
3
3
  end
@@ -111,7 +111,7 @@ namespace :resque do
111
111
  system("kill -QUIT #{worker.pid}")
112
112
  end
113
113
  queues = worker.queues_in_pid.join('#')
114
- Thread.new(queues) { |queue| system("nohup #{rake} RAILS_ENV=#{Rails.env} QUEUE=#{queue} resque:work") }
114
+ system("nohup #{rake} RAILS_ENV=#{Rails.env} QUEUE=#{queues} resque:work >> log/resque_worker.log 3>&1 & sleep 2")
115
115
  pid = worker.pid
116
116
  end
117
117
  end
@@ -8505,3 +8505,238 @@ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController priva
8505
8505
  -----------------------------
8506
8506
  ResqueManagerTest: test_truth
8507
8507
  -----------------------------
8508
+ ---------------------------------------------------------------------------------------------------------------------------------
8509
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #add_scheduled_job should add a job to the scheduler.
8510
+ ---------------------------------------------------------------------------------------------------------------------------------
8511
+ Processing by ResqueManager::ResqueController#add_scheduled_job as HTML
8512
+ Parameters: {"name"=>"TestName", "class"=>"SingleRecordLoader", "ip"=>"0.0.0.0", "args"=>nil, "description"=>"Test job", "cron"=>"TestCron"}
8513
+ Redirected to http://test.host/resque/schedule
8514
+ Completed 302 Found in 14ms
8515
+ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8516
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #add_scheduled_job should have an error for a name already existing and missing ip and missing cron.
8517
+ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8518
+ Processing by ResqueManager::ResqueController#add_scheduled_job as HTML
8519
+ Parameters: {"name"=>"key"}
8520
+ Redirected to http://test.host/resque/schedule
8521
+ Completed 302 Found in 1ms
8522
+ -----------------------------------------------------------------------------------------------------------------------------
8523
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #cleaner_stale should always redirect to cleaner.
8524
+ -----------------------------------------------------------------------------------------------------------------------------
8525
+ Processing by ResqueManager::ResqueController#cleaner_stale as HTML
8526
+ Redirected to http://test.host/resque/cleaner
8527
+ Completed 302 Found in 1ms
8528
+ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8529
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #clear_statuses should always redirect to statuses page and call Resque::Plugins::Status::Hash.clear.
8530
+ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8531
+ Processing by ResqueManager::ResqueController#clear_statuses as HTML
8532
+ Redirected to http://test.host/resque/statuses
8533
+ Completed 302 Found in 1ms
8534
+ ------------------------------------------------------------------------------------------------------------------------------------
8535
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #continue_worker should always redirect to workers path.
8536
+ ------------------------------------------------------------------------------------------------------------------------------------
8537
+ Processing by ResqueManager::ResqueController#continue_worker as HTML
8538
+ Redirected to http://test.host/resque/workers
8539
+ Completed 302 Found in 2ms
8540
+ -----------------------------------------------------------------------------------------------------------------------------------
8541
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #continue_worker should continue a worker and redirect.
8542
+ -----------------------------------------------------------------------------------------------------------------------------------
8543
+ Processing by ResqueManager::ResqueController#continue_worker as HTML
8544
+ Parameters: {"worker"=>"dq11fs1.clarity.net(10.10.1.88):85830:2160245740::"}
8545
+ Redirected to http://test.host/resque/workers
8546
+ Completed 302 Found in 2ms
8547
+ --------------------------------------------------------------------------------------------------------------------------------
8548
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #kill should redirect to statuses and kill a status.
8549
+ --------------------------------------------------------------------------------------------------------------------------------
8550
+ Processing by ResqueManager::ResqueController#kill as HTML
8551
+ Parameters: {"id"=>"UUID"}
8552
+ Redirected to http://test.host/resque/statuses
8553
+ Completed 302 Found in 3ms
8554
+ ---------------------------------------------------------------------------------------------------------------------------------
8555
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #pause_worker should always redirect to workers path.
8556
+ ---------------------------------------------------------------------------------------------------------------------------------
8557
+ Processing by ResqueManager::ResqueController#pause_worker as HTML
8558
+ Redirected to http://test.host/resque/workers
8559
+ Completed 302 Found in 1ms
8560
+ -----------------------------------------------------------------------------------------------------------------------------
8561
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #pause_worker should pause a worker and redirect.
8562
+ -----------------------------------------------------------------------------------------------------------------------------
8563
+ Processing by ResqueManager::ResqueController#pause_worker as HTML
8564
+ Parameters: {"worker"=>"dq11fs1.clarity.net(10.10.1.88):85830:2160245740::"}
8565
+ Redirected to http://test.host/resque/workers
8566
+ Completed 302 Found in 1ms
8567
+ -----------------------------------------------------------------------------------------------------------------------------------------
8568
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #poll should respond with success and start the live polling.
8569
+ -----------------------------------------------------------------------------------------------------------------------------------------
8570
+ Processing by ResqueManager::ResqueController#poll as HTML
8571
+ Parameters: {"page"=>"overview"}
8572
+ Rendered /Users/ktyll/rails_sites/git/resque_manager/app/views/resque_manager/resque/_queues.html.erb (3.0ms)
8573
+ Rendered /Users/ktyll/rails_sites/git/resque_manager/app/views/resque_manager/resque/_working.html.erb (2.6ms)
8574
+ Completed 200 OK in 25ms (Views: 0.3ms)
8575
+ -----------------------------------------------------------------------------------------------------------------------------------------------
8576
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #queues should respond with success and render the _queues partial.
8577
+ -----------------------------------------------------------------------------------------------------------------------------------------------
8578
+ Processing by ResqueManager::ResqueController#queues as HTML
8579
+ Completed 200 OK in 136ms (Views: 135.3ms)
8580
+ -------------------------------------------------------------------------------------------------------------------------------------
8581
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #remove_from_schedule should always redirect to schedule.
8582
+ -------------------------------------------------------------------------------------------------------------------------------------
8583
+ Processing by ResqueManager::ResqueController#remove_from_schedule as HTML
8584
+ Redirected to http://test.host/resque/schedule
8585
+ Completed 302 Found in 1ms
8586
+ ----------------------------------------------------------------------------------------------------------------------------------
8587
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #remove_from_schedule should restart schedule from ip.
8588
+ ----------------------------------------------------------------------------------------------------------------------------------
8589
+ Processing by ResqueManager::ResqueController#remove_from_schedule as HTML
8590
+ Parameters: {"ip"=>"0.0.0.0", "job_name"=>"SingleRecordLoader"}
8591
+ Redirected to http://test.host/resque/schedule
8592
+ Completed 302 Found in 1ms
8593
+ ---------------------------------------------------------------------------------------------------------------
8594
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #remove_job should always redirect.
8595
+ ---------------------------------------------------------------------------------------------------------------
8596
+ Processing by ResqueManager::ResqueController#remove_job as HTML
8597
+ Parameters: {"class"=>"SingleRecordLoader"}
8598
+ Redirected to http://test.host/resque/queues/single_record_loader
8599
+ Completed 302 Found in 1ms
8600
+ -------------------------------------------------------------------------------------------------------
8601
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #remove_job should dequeue.
8602
+ -------------------------------------------------------------------------------------------------------
8603
+ Processing by ResqueManager::ResqueController#remove_job as HTML
8604
+ Parameters: {"class"=>"SingleRecordLoader"}
8605
+ Redirected to http://test.host/resque/queues/single_record_loader
8606
+ Completed 302 Found in 1ms
8607
+ -----------------------------------------------------------------------------------------------------------------------------------
8608
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #restart_worker should always redirect to workers path.
8609
+ -----------------------------------------------------------------------------------------------------------------------------------
8610
+ Processing by ResqueManager::ResqueController#restart_worker as HTML
8611
+ Redirected to http://test.host/resque/workers
8612
+ Completed 302 Found in 1ms
8613
+ ----------------------------------------------------------------------------------------------------------------------------------
8614
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #restart_worker should continue a worker and redirect.
8615
+ ----------------------------------------------------------------------------------------------------------------------------------
8616
+ Processing by ResqueManager::ResqueController#restart_worker as HTML
8617
+ Parameters: {"worker"=>"dq11fs1.clarity.net(10.10.1.88):85830:2160245740::"}
8618
+ Redirected to http://test.host/resque/workers
8619
+ Completed 302 Found in 1ms
8620
+ ------------------------------------------------------------------------------------------------------------------------
8621
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #schedule should have a response of success.
8622
+ ------------------------------------------------------------------------------------------------------------------------
8623
+ Processing by ResqueManager::ResqueController#schedule as HTML
8624
+ Completed 200 OK in 78ms (Views: 38.9ms)
8625
+ ---------------------------------------------------------------------------------------------------------------------------------
8626
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #schedule_requeue should always redirect to overview.
8627
+ ---------------------------------------------------------------------------------------------------------------------------------
8628
+ Processing by ResqueManager::ResqueController#schedule_requeue as HTML
8629
+ Redirected to http://test.host/resque/overview
8630
+ Completed 302 Found in 1ms
8631
+ ---------------------------------------------------------------------------------------------------------------------------------------------------------------
8632
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #start_scheduler should always redirect to schedule and call ResqueScheduler.start.
8633
+ ---------------------------------------------------------------------------------------------------------------------------------------------------------------
8634
+ Processing by ResqueManager::ResqueController#start_scheduler as HTML
8635
+ Parameters: {"ip"=>"0.0.0.0"}
8636
+ Redirected to http://test.host/resque/schedule
8637
+ Completed 302 Found in 1ms
8638
+ ---------------------------------------------------------------------------------------------------------------------------------
8639
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #start_worker should always redirect to workers path.
8640
+ ---------------------------------------------------------------------------------------------------------------------------------
8641
+ Processing by ResqueManager::ResqueController#start_worker as HTML
8642
+ Redirected to http://test.host/resque/workers
8643
+ Completed 302 Found in 1ms
8644
+ --------------------------------------------------------------------------------------------------------------------------------
8645
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #start_worker should continue a worker and redirect.
8646
+ --------------------------------------------------------------------------------------------------------------------------------
8647
+ Processing by ResqueManager::ResqueController#start_worker as HTML
8648
+ Parameters: {"worker"=>"dq11fs1.clarity.net(10.10.1.88):85830:2160245740::"}
8649
+ Redirected to http://test.host/resque/workers
8650
+ Completed 302 Found in 2ms
8651
+ -------------------------------------------------------------------------------------------------------------------------------------
8652
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #stats should redirect to /stats/resque for a missing id.
8653
+ -------------------------------------------------------------------------------------------------------------------------------------
8654
+ Processing by ResqueManager::ResqueController#stats as HTML
8655
+ Redirected to http://test.host/resque/stats?id=resque
8656
+ Completed 302 Found in 1ms
8657
+ ---------------------------------------------------------------------------------------------------------------------------------
8658
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #stats should render resque info text when id is txt.
8659
+ ---------------------------------------------------------------------------------------------------------------------------------
8660
+ Processing by ResqueManager::ResqueController#stats as HTML
8661
+ Parameters: {"id"=>"txt"}
8662
+ Completed 200 OK in 3ms (Views: 0.6ms)
8663
+ -------------------------------------------------------------------------------------------------------------------
8664
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #status should render a status in html.
8665
+ -------------------------------------------------------------------------------------------------------------------
8666
+ Processing by ResqueManager::ResqueController#status as HTML
8667
+ Parameters: {"id"=>"UUID"}
8668
+ Rendered /Users/ktyll/rails_sites/git/resque_manager/app/views/resque_manager/resque/_status_styles.erb (0.5ms)
8669
+ Completed 200 OK in 18ms (Views: 17.3ms)
8670
+ -------------------------------------------------------------------------------------------------------------------
8671
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #status should render a status in json.
8672
+ -------------------------------------------------------------------------------------------------------------------
8673
+ Processing by ResqueManager::ResqueController#status as JS
8674
+ Parameters: {"id"=>"UUID"}
8675
+ Completed 200 OK in 1ms (Views: 0.2ms)
8676
+ ------------------------------------------------------------------------------------------------------------------------------------------------
8677
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #status_poll should respond with success and start the live polling.
8678
+ ------------------------------------------------------------------------------------------------------------------------------------------------
8679
+ Processing by ResqueManager::ResqueController#status_poll as HTML
8680
+ Rendered /Users/ktyll/rails_sites/git/resque_manager/app/views/resque_manager/resque/_status_styles.erb (0.1ms)
8681
+ Completed 200 OK in 15ms (Views: 0.2ms)
8682
+ ----------------------------------------------------------------------------------------------------------------------------
8683
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #statuses should render the page in html format.
8684
+ ----------------------------------------------------------------------------------------------------------------------------
8685
+ Processing by ResqueManager::ResqueController#statuses as HTML
8686
+ Rendered /Users/ktyll/rails_sites/git/resque_manager/app/views/resque_manager/resque/_status_styles.erb (0.1ms)
8687
+ Rendered /Users/ktyll/rails_sites/git/resque_manager/app/views/resque_manager/resque/_next_more.html.erb (0.8ms)
8688
+ Completed 200 OK in 8ms (Views: 6.6ms)
8689
+ ----------------------------------------------------------------------------------------------------------------------------------
8690
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #statuses should respond with a status in json format.
8691
+ ----------------------------------------------------------------------------------------------------------------------------------
8692
+ Processing by ResqueManager::ResqueController#statuses as JS
8693
+ Completed 200 OK in 1ms (Views: 0.3ms)
8694
+ --------------------------------------------------------------------------------------------------------------------------------------------------------------
8695
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #stop_scheduler should always redirect to schedule and call ResqueScheduler.start.
8696
+ --------------------------------------------------------------------------------------------------------------------------------------------------------------
8697
+ Processing by ResqueManager::ResqueController#stop_scheduler as HTML
8698
+ Parameters: {"ip"=>"0.0.0.0"}
8699
+ Redirected to http://test.host/resque/schedule
8700
+ Completed 302 Found in 1ms
8701
+ --------------------------------------------------------------------------------------------------------------------------------
8702
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #stop_worker should always redirect to workers path.
8703
+ --------------------------------------------------------------------------------------------------------------------------------
8704
+ Processing by ResqueManager::ResqueController#stop_worker as HTML
8705
+ Redirected to http://test.host/resque/workers
8706
+ Completed 302 Found in 1ms
8707
+ ---------------------------------------------------------------------------------------------------------------------------
8708
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #stop_worker should stop a worker and redirect.
8709
+ ---------------------------------------------------------------------------------------------------------------------------
8710
+ Processing by ResqueManager::ResqueController#stop_worker as HTML
8711
+ Parameters: {"worker"=>"dq11fs1.clarity.net(10.10.1.88):85830:2160245740::"}
8712
+ Redirected to http://test.host/resque/workers
8713
+ Completed 302 Found in 1ms
8714
+ -------------------------------------------------------------------------------------------------------------------------------------------------
8715
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController #working should respond with success and render the _working partial.
8716
+ -------------------------------------------------------------------------------------------------------------------------------------------------
8717
+ Processing by ResqueManager::ResqueController#working as HTML
8718
+ Completed 200 OK in 6ms (Views: 5.5ms)
8719
+ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8720
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController private #check_connection should rescue a Errno::ECONNRFUSED exception and render template resque/error.
8721
+ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8722
+ Processing by ResqueManager::ResqueController#working as HTML
8723
+ Filter chain halted as :check_connection rendered or redirected
8724
+ Completed 200 OK in 10ms (Views: 9.4ms)
8725
+ -------------------------------------------------------------------------------------------------------------------------
8726
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController private #check_connection should return true.
8727
+ -------------------------------------------------------------------------------------------------------------------------
8728
+ --------------------------------------------------------------------------------------------------------------------------------
8729
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController private #find_worker should find the correct worker.
8730
+ --------------------------------------------------------------------------------------------------------------------------------
8731
+ ----------------------------------------------------------------------------------------------------------------------------------------
8732
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController private #find_worker should return nil for a missing worker.
8733
+ ----------------------------------------------------------------------------------------------------------------------------------------
8734
+ -------------------------------------------------------------------------------------------------------------------------
8735
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController private #get_cleaner should return a cleaner.
8736
+ -------------------------------------------------------------------------------------------------------------------------
8737
+ ----------------------------------------------------------------------------------------------------------------------------------------------------
8738
+ ResqueManager::ResqueControllerTest: test: ResqueManager::ResqueController private #hours_ago should return the correctly formatted hours ago time.
8739
+ ----------------------------------------------------------------------------------------------------------------------------------------------------
8740
+ -----------------------------
8741
+ ResqueManagerTest: test_truth
8742
+ -----------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.6
4
+ version: 3.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Tyll