resque_admin 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/HISTORY.md +30 -30
  3. data/README.markdown +83 -83
  4. data/bin/resque +5 -5
  5. data/bin/resque-web +4 -4
  6. data/lib/resque_admin/data_store.rb +4 -4
  7. data/lib/resque_admin/errors.rb +1 -1
  8. data/lib/resque_admin/failure/airbrake.rb +4 -4
  9. data/lib/resque_admin/failure/base.rb +1 -1
  10. data/lib/resque_admin/failure/multiple.rb +2 -2
  11. data/lib/resque_admin/failure/redis.rb +7 -7
  12. data/lib/resque_admin/failure/redis_multi_queue.rb +11 -11
  13. data/lib/resque_admin/failure.rb +6 -6
  14. data/lib/resque_admin/helpers.rb +9 -9
  15. data/lib/resque_admin/job.rb +22 -22
  16. data/lib/resque_admin/log_formatters/quiet_formatter.rb +1 -1
  17. data/lib/resque_admin/log_formatters/verbose_formatter.rb +1 -1
  18. data/lib/resque_admin/log_formatters/very_verbose_formatter.rb +1 -1
  19. data/lib/resque_admin/logging.rb +2 -2
  20. data/lib/resque_admin/plugin.rb +2 -2
  21. data/lib/resque_admin/server/helpers.rb +4 -4
  22. data/lib/resque_admin/server/test_helper.rb +2 -2
  23. data/lib/resque_admin/server/views/failed.erb +2 -2
  24. data/lib/resque_admin/server/views/failed_queues_overview.erb +3 -3
  25. data/lib/resque_admin/server/views/layout.erb +6 -6
  26. data/lib/resque_admin/server/views/queues.erb +5 -5
  27. data/lib/resque_admin/server/views/stats.erb +1 -1
  28. data/lib/resque_admin/server/views/workers.erb +4 -4
  29. data/lib/resque_admin/server/views/working.erb +1 -1
  30. data/lib/resque_admin/server.rb +35 -35
  31. data/lib/resque_admin/stat.rb +2 -2
  32. data/lib/resque_admin/tasks.rb +8 -8
  33. data/lib/resque_admin/thread_signal.rb +1 -1
  34. data/lib/resque_admin/version.rb +2 -2
  35. data/lib/resque_admin/worker.rb +29 -29
  36. data/lib/resque_admin.rb +27 -27
  37. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ec9925e2a82f44a73e3743a3eda6e0e6c0023df
4
- data.tar.gz: e1757b6b3e902ced5f4596efc650978b0bca3bb4
3
+ metadata.gz: 528d11399701ed423c39cffd201424015ec77aca
4
+ data.tar.gz: 93995f6704eccbf1469e5747b29f39712f2b0e8a
5
5
  SHA512:
6
- metadata.gz: 25d2bfe16714696f150067e7053a31d2b0c7fb6a9308e7cbdbe7cc81f0991cc8fee7099a6448314dcbe91af5aef20f07731f62e2c5c41a8b9bdfcec729789946
7
- data.tar.gz: ea8d7cb0ed99501e8870fca4403d17020894a28b718e758a4018acc5f067bc154bf722cdbfccbae112a7593c5236784e6f229293dac161c7297e830d2a576f95
6
+ metadata.gz: d38e8a39c55aabb0d9828d48a3170e9e6dd2826be17f849f6439cb51db9debd24641e627cd5515afcc8ea5feeb6fffe5a2bb00eb9bd6ed7e40815649e14c26cd
7
+ data.tar.gz: 9330a80060189f43d77238563586467813c73458a60c3553b249fd1d641a402d5c1bf0e5bcb22852ba360e1e0cbfc2a2f5c374aa25300bf644eee002d32ad694
data/HISTORY.md CHANGED
@@ -6,12 +6,12 @@
6
6
  ## 1.27.4 (2017-04-15)
7
7
 
8
8
  ### Fixed
9
- * Fix issue where removing a failure from Resque web didn't work when using `RedisMultiQueue` backend.
9
+ * Fix issue where removing a failure from ResqueAdmin web didn't work when using `RedisMultiQueue` backend.
10
10
 
11
11
  ## 1.27.3 (2017-04-10)
12
12
 
13
13
  ### Fixed
14
- * Fix issue where initializing a data store would attempt to hit Redis, even when Resque.inline = true
14
+ * Fix issue where initializing a data store would attempt to hit Redis, even when ResqueAdmin.inline = true
15
15
 
16
16
  ## 1.27.2 (2017-02-20)
17
17
 
@@ -46,7 +46,7 @@
46
46
  * No longer user Thread.kill to stop heartbeat (@Sinjo)
47
47
 
48
48
  ### Added
49
- * Resque Web UI now prompts for confirmation on clearing failed jobs (Markus Olsen)
49
+ * ResqueAdmin Web UI now prompts for confirmation on clearing failed jobs (Markus Olsen)
50
50
  * Adds process status to DirtyExit exception when job is killed via signal (@MishaConway)
51
51
 
52
52
  ## 1.26.0 (2016-03-10)
@@ -59,7 +59,7 @@ the next release.
59
59
  worker instead of the current pid. (@yaauie)
60
60
  * Add support for RESQUE_PROCLINE_PREFIX environment variable to prefix
61
61
  procline strings with a static identifier. (@rbroemeling)
62
- * Resque::Worker logs errors at the correct logging level (@chrisccerami)
62
+ * ResqueAdmin::Worker logs errors at the correct logging level (@chrisccerami)
63
63
 
64
64
  ## 1.25.2 (2014-3-3)
65
65
 
@@ -69,7 +69,7 @@ the next release.
69
69
  * use redis-namespace 1.3 (Andrea Rossi)
70
70
  * fix DOCS link in README (@cade)
71
71
  * Fix worker prune test to actually run its assertion & cover reality. (@yaauie)
72
- * Eliminate infinite recursion when Resque::Helpers mixed into Resque (@yaml)
72
+ * Eliminate infinite recursion when ResqueAdmin::Helpers mixed into ResqueAdmin (@yaml)
73
73
  * use ruby, avoid shelling out. google++ (@hone)
74
74
  * Failed Assertions Don't Fail Tests :rage: (@yaauie)
75
75
 
@@ -85,7 +85,7 @@ the next release.
85
85
  https://github.com/resque/resque/pull/902 (@jonhyman)
86
86
  * Fixed uninitialize constant for the module/class that contains the perform
87
87
  method causing job failures to no be reported, #792 (@sideshowcoder)
88
- * Fix Resque::Failure::Base.all to have the correct signature.
88
+ * Fix ResqueAdmin::Failure::Base.all to have the correct signature.
89
89
  (@rentalutions)
90
90
  * Don't close stdio pipes when daemonizing so as to not hide errors. #967
91
91
  (@sideshowcoder)
@@ -116,7 +116,7 @@ the next release.
116
116
  * Web UI: Add page list to queues (@ql)
117
117
  * Web UI: Fix regression that caused the failure tab to break when clicking on
118
118
  "clear all failures" under certain failure backends, #859 (@jonhyman)
119
- * Fix regression for Resque hooks where Resque would error out if you assigned
119
+ * Fix regression for ResqueAdmin hooks where ResqueAdmin would error out if you assigned
120
120
  multiple hooks using an array, #859 (@jonhyman)
121
121
  * Adds ENV["RUN_AT_EXIT_HOOKS"] which when set to 1 causes any defined
122
122
  `at_exit` hooks to be run on the child when the forked process exits, #862
@@ -149,12 +149,12 @@ the next release.
149
149
  the RedisMultiQueue failure backend (@tarcieri)
150
150
  * Disable forking completely with FORK_PER_JOB=false env var (@tarcieri)
151
151
  * Report a failure when processes are killed with signals (@dylanahsmith)
152
- * Enable registering of multiple Resque hooks (@panthomakos, @jonhyman)
152
+ * Enable registering of multiple ResqueAdmin hooks (@panthomakos, @jonhyman)
153
153
 
154
154
  ## 1.23.0 (2012-10-01)
155
155
 
156
- * don't run `before_fork` hook if Resque can't fork (@kjwierenga, @tarcieri, #672, #697)
157
- * don't run `after_fork` hook if Resque can't fork (@kjwierenga, @tarcieri, #672, #697)
156
+ * don't run `before_fork` hook if ResqueAdmin can't fork (@kjwierenga, @tarcieri, #672, #697)
157
+ * don't run `after_fork` hook if ResqueAdmin can't fork (@kjwierenga, @tarcieri, #672, #697)
158
158
  * retry connecting to redis up to 3 times (@trevorturk, #693)
159
159
  * pass exceptions raised by the worker into the Failure backend (@trevorturk, #693)
160
160
 
@@ -162,7 +162,7 @@ the next release.
162
162
 
163
163
  * unregister signal handlers in child process when ENV["TERM_CHILD"] is set (@dylanasmith, #621)
164
164
  * new signal handling for TERM. See http://hone.heroku.com/resque/2012/08/21/resque-signals.html. (@wuputah, @yaaule, #638)
165
- * supports calling perform hooks when using Resque.inline (@jonhyman, #506)
165
+ * supports calling perform hooks when using ResqueAdmin.inline (@jonhyman, #506)
166
166
 
167
167
  ## 1.21.0 (2012-07-02)
168
168
 
@@ -184,12 +184,12 @@ the next release.
184
184
  * #decode raise takes a string when re-raising as a different exception class (Trevor Hart)
185
185
  * Use Sinatra's `pubilc_folder` if it exists (@defunkt, #420, #421)
186
186
  * Assign the job's worker before calling `before_fork` (@quirkey)
187
- * Fix Resque::Helpers#constantize to work correctly on 1.9.2 (@rtlong)
187
+ * Fix ResqueAdmin::Helpers#constantize to work correctly on 1.9.2 (@rtlong)
188
188
  * Added before & after hooks for dequeue (@humancopy, #398)
189
189
  * daemonize support using `ENV["BACKGROUND"]` (@chrisleishman)
190
190
  * requeue and remove failed jobs by queue name (@evanwhalen)
191
191
  * `-r` flag for resque-web for redis connection (@gjastrab)
192
- * Added `Resque.enqueue_to`: allows you to specif the queue and still run hooks (@dan-g)
192
+ * Added `ResqueAdmin.enqueue_to`: allows you to specif the queue and still run hooks (@dan-g)
193
193
  * Web UI: Set the default encoding to UTF-8 (@elubow)
194
194
  * fix finding worker pids on JRuby (John Andrews + Andrew Grieser)
195
195
  * Added distributed redis support (@stipple)
@@ -230,12 +230,12 @@ the next release.
230
230
  ## 1.18.0 (2011-08-18)
231
231
 
232
232
  * Added before_enqueue hook.
233
- * Resque workers now preload files under app/ in Rails
233
+ * ResqueAdmin workers now preload files under app/ in Rails
234
234
  * Switch to MultiJSON
235
235
  * Bugfix: Finding worker pids on Solaris
236
236
  * Web UI: Fix NaN days ago for worker screens
237
237
  * Web UI: Add Cache-Control header to prevent proxy caching
238
- * Web UI: Update Resque.redis_id so it can be used in a distributed ring.
238
+ * Web UI: Update ResqueAdmin.redis_id so it can be used in a distributed ring.
239
239
 
240
240
  ## 1.17.1 (2011-05-27)
241
241
 
@@ -251,7 +251,7 @@ the next release.
251
251
 
252
252
  ## 1.16.1 (2011-05-17)
253
253
 
254
- * Bugfix: Resque::Failure::Hoptoad.configure works again
254
+ * Bugfix: ResqueAdmin::Failure::Hoptoad.configure works again
255
255
  * Bugfix: Loading rake tasks
256
256
 
257
257
  ## 1.16.0 (2011-05-16)
@@ -259,7 +259,7 @@ the next release.
259
259
  * Optional Hoptoad backend extracted into hoptoad_notifier. Install the gem to use it.
260
260
  * Added `Worker#paused?` method
261
261
  * Bugfix: Properly reseed random number generator after forking.
262
- * Bugfix: Resque.redis=(<a Redis::Namespace>)
262
+ * Bugfix: ResqueAdmin.redis=(<a Redis::Namespace>)
263
263
  * Bugfix: Monit example stdout/stderr redirection
264
264
  * Bugfix: Removing single failure now works with multiple failure backends
265
265
  * Web: 'Remove Queue' now requires confirmation
@@ -277,12 +277,12 @@ the next release.
277
277
  ## 1.14.0 (2011-03-17)
278
278
 
279
279
  * Sleep interval can now be a float
280
- * Added Resque.inline to allow in-process performing of jobs (for testing)
280
+ * Added ResqueAdmin.inline to allow in-process performing of jobs (for testing)
281
281
  * Fixed tests for Ruby 1.9.2
282
- * Added Resque.validate(klass) to validate a Job
282
+ * Added ResqueAdmin.validate(klass) to validate a Job
283
283
  * Decode errors are no longer ignored to help debugging
284
284
  * Web: Sinatra 1.2 compatibility
285
- * Fixed after_enqueue hook to actually run in `Resque.enqueue`
285
+ * Fixed after_enqueue hook to actually run in `ResqueAdmin.enqueue`
286
286
  * Fixed very_verbose timestamps to use 24 hour time (AM/PM wasn't included)
287
287
  * Fixed monit example
288
288
  * Fixed Worker#pid
@@ -309,7 +309,7 @@ the next release.
309
309
 
310
310
  ## 1.10.0 (2010-08-23)
311
311
 
312
- * Support redis:// string format in `Resque.redis=`
312
+ * Support redis:// string format in `ResqueAdmin.redis=`
313
313
  * Using new cross-platform JSON gem.
314
314
  * Added `after_enqueue` plugin hook.
315
315
  * Added `shutdown?` method which can be overridden.
@@ -354,7 +354,7 @@ the next release.
354
354
 
355
355
  ## 1.9.3 (2010-06-14)
356
356
 
357
- * Bugfix: Resque#queues always returns an array
357
+ * Bugfix: ResqueAdmin#queues always returns an array
358
358
 
359
359
  ## 1.9.2 (2010-06-13)
360
360
 
@@ -370,7 +370,7 @@ the next release.
370
370
 
371
371
  * Redis 2 support
372
372
  * Depend on redis-namespace 0.5.0
373
- * Added Resque::VERSION constant (alias of Resque::Version)
373
+ * Added ResqueAdmin::VERSION constant (alias of ResqueAdmin::Version)
374
374
  * Bugfix: Specify JSON dependency
375
375
  * Bugfix: Hoptoad plugin now works on 1.9
376
376
 
@@ -404,7 +404,7 @@ the next release.
404
404
  * `Worker.working` race condition fixed
405
405
  * `Worker#process` has been deprecated.
406
406
  * Monit example fixed
407
- * Redis::Client and Redis::Namespace can be passed to `Resque.redis=`
407
+ * Redis::Client and Redis::Namespace can be passed to `ResqueAdmin.redis=`
408
408
 
409
409
  ## 1.7.1 (2010-04-02)
410
410
 
@@ -443,7 +443,7 @@ the next release.
443
443
 
444
444
  ## 1.5.1 (2010-03-03)
445
445
 
446
- * `Job.destroy` and `Resque.dequeue` return the # of destroyed jobs.
446
+ * `Job.destroy` and `ResqueAdmin.dequeue` return the # of destroyed jobs.
447
447
  * Hoptoad notifier improvements
448
448
  * Specify the namespace with `resque-web` by passing `-N namespace`
449
449
  * Bugfix: Don't crash when trying to parse invalid JSON.
@@ -458,8 +458,8 @@ the next release.
458
458
 
459
459
  * Version now included in procline, e.g. `resque-1.5.0: Message`
460
460
  * Web bugfix: Ignore idle works in the "working" page
461
- * Added `Resque::Job.destroy(queue, klass, *args)`
462
- * Added `Resque.dequeue(klass, *args)`
461
+ * Added `ResqueAdmin::Job.destroy(queue, klass, *args)`
462
+ * Added `ResqueAdmin.dequeue(klass, *args)`
463
463
 
464
464
  ## 1.4.0 (2010-02-11)
465
465
 
@@ -471,7 +471,7 @@ the next release.
471
471
  * Support USR2 and CONT to stop and start job processing.
472
472
  * Web: Add example failing job
473
473
  * Bugfix: `Worker#unregister_worker` shouldn't call `done_working`
474
- * Bugfix: Example god config now restarts Resque properly.
474
+ * Bugfix: Example god config now restarts ResqueAdmin properly.
475
475
  * Multiple failure backends now permitted.
476
476
  * Hoptoad failure backend updated to new API
477
477
 
@@ -484,7 +484,7 @@ the next release.
484
484
  * Use Vegas for resque-web
485
485
  * Web Bugfix: Show proper date/time value for failed_at on Failures
486
486
  * Web Bugfix: Make the / route more flexible
487
- * Add Resque::Server.tabs array (so plugins can add their own tabs)
487
+ * Add ResqueAdmin::Server.tabs array (so plugins can add their own tabs)
488
488
  * Start using [Semantic Versioning](http://semver.org/)
489
489
 
490
490
  ## 1.2.4 (2009-12-15)
@@ -516,7 +516,7 @@ the next release.
516
516
 
517
517
  * If USR1 is sent and no child is found, shutdown.
518
518
  * Raise when a job class does not respond to `perform`.
519
- * Added `Resque.remove_queue` for deleting a queue
519
+ * Added `ResqueAdmin.remove_queue` for deleting a queue
520
520
 
521
521
  ## 1.1.0 (2009-11-04)
522
522