resque 1.27.4 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of resque might be problematic. Click here for more details.

Files changed (45) hide show
  1. checksums.yaml +5 -5
  2. data/HISTORY.md +109 -3
  3. data/README.markdown +438 -500
  4. data/bin/resque-web +10 -26
  5. data/lib/resque/data_store.rb +52 -58
  6. data/lib/resque/errors.rb +7 -1
  7. data/lib/resque/failure/airbrake.rb +19 -7
  8. data/lib/resque/failure/multiple.rb +6 -2
  9. data/lib/resque/failure/redis.rb +1 -1
  10. data/lib/resque/failure/redis_multi_queue.rb +1 -1
  11. data/lib/resque/failure.rb +7 -0
  12. data/lib/resque/job.rb +2 -2
  13. data/lib/resque/logging.rb +1 -1
  14. data/lib/resque/railtie.rb +10 -0
  15. data/lib/resque/server/public/jquery-3.6.0.min.js +2 -0
  16. data/lib/resque/server/public/main.js +3 -0
  17. data/lib/resque/server/public/ranger.js +7 -4
  18. data/lib/resque/server/public/style.css +3 -3
  19. data/lib/resque/server/views/error.erb +1 -1
  20. data/lib/resque/server/views/failed.erb +9 -3
  21. data/lib/resque/server/views/failed_job.erb +2 -2
  22. data/lib/resque/server/views/job_class.erb +3 -1
  23. data/lib/resque/server/views/key_string.erb +1 -1
  24. data/lib/resque/server/views/layout.erb +5 -4
  25. data/lib/resque/server/views/next_more.erb +14 -14
  26. data/lib/resque/server/views/queues.erb +6 -6
  27. data/lib/resque/server/views/stats.erb +5 -5
  28. data/lib/resque/server/views/working.erb +6 -6
  29. data/lib/resque/server.rb +11 -119
  30. data/lib/resque/server_helper.rb +185 -0
  31. data/lib/resque/stat.rb +16 -9
  32. data/lib/resque/tasks.rb +3 -11
  33. data/lib/resque/thread_signal.rb +13 -34
  34. data/lib/resque/vendor/utf8_util.rb +2 -8
  35. data/lib/resque/version.rb +1 -1
  36. data/lib/resque/web_runner.rb +374 -0
  37. data/lib/resque/worker.rb +76 -48
  38. data/lib/resque.rb +100 -27
  39. data/lib/tasks/redis.rake +10 -10
  40. metadata +47 -31
  41. data/lib/resque/server/helpers.rb +0 -64
  42. data/lib/resque/server/public/jquery-1.12.4.min.js +0 -5
  43. data/lib/resque/server/test_helper.rb +0 -19
  44. data/lib/resque/vendor/utf8_util/utf8_util_18.rb +0 -91
  45. data/lib/resque/vendor/utf8_util/utf8_util_19.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: acae072e3d9a8528a3dc20919ea2c0bd06c90d45
4
- data.tar.gz: 3de81881552589630db942941bb3ff6b8353ff24
2
+ SHA256:
3
+ metadata.gz: 0153ab38ce4b063a60d22d1a0629e590baa6658e514fd369394982e6ce2ad2cd
4
+ data.tar.gz: a86e978107b5ca99bc97df0a6a6ec718e64f4dcfe3816d7fab08885ebb49b070
5
5
  SHA512:
6
- metadata.gz: 20fa32261ff9fd4744a7c2bb32265fa545d2cc4dda3433f1513291e6cec91d3503cfc4120b990b2ed96507c7848dfbfe474682e10b0ed68a7188798b88819e08
7
- data.tar.gz: b623868af21a1ccb630ef02f0f9ed1892845041f01926564a01559a6bdac783c6353822705b7c82f1d750c167a743972b7d54d859c0fed66a57826c3ea498cf8
6
+ metadata.gz: 93877c6bb80781a7d8d53c2697ea8c87bcddf2fc38addc49f6f05e7d3ab1a243a23de7c4bd29c0f14b575535a62f721313f8968150bf863af852237d15715cee
7
+ data.tar.gz: 7483844c869aaee817b2dd064e1b9dd3c7f7ab451ee2a8b73dfbb45f14e7b70de3981ac75a6290b526728797513557523ee015c644875ba5d4a6fc23f261e097
data/HISTORY.md CHANGED
@@ -1,8 +1,114 @@
1
- ## Unreleased
1
+ ## 2.5.0
2
2
 
3
- Nothing yet!
3
+ ### Fixed
4
+
5
+ * Replace `File.exists?` with `File.exist?` (#1846)
6
+ * Escape `Resque.redis_id` for stats page (#1834)
7
+ * Escape resque info values (#1832)
8
+ * Correctly show the values of hash and none type on stats tab (#1838)
9
+ * Fix logging the worker name when starting the task (#1837)
10
+
11
+ ### Added
12
+
13
+ * Raise an error when no available Rack server was found (#1836)
14
+ * Move code in `Resque::Server.helpers` block into a module to make it testable (#1851)
15
+
16
+ ## 2.4.0
17
+
18
+ ### Fixed
19
+
20
+ * Remove `thread_safe` arg in Redis instantiaons (#1822)
21
+ * Updated Test Matrix for Redis 5.0 (#1824)
22
+ * Fix redis-rb 4.8 deprecation warnings (#1827)
23
+ * Fix redis-rb 5.0 compatibility issues (#1828)
24
+
25
+ ## 2.3.0
26
+
27
+ ### Fixed
28
+
29
+ * Fix NoMethodError: undefined method 'application' for Rails:Module when Rails module is defined but not a full Rails app (#1799)
30
+ * Fix deprecation warnings in Redis#pipelined for redis 4.6 (#1806)
31
+ * Add Ruby syntax highlighting to remaining markdown docs (#1802)
32
+ * Fix pagination section (#1809)
33
+ * Fix `before_run` undefined local variable or method `runner` (#1811)
34
+
35
+ ### Added
36
+
37
+ * Added support for pausing all workers by setting the Redis key `pause-all-workers` to string value "true" (#1803)
38
+
39
+ ## 2.2.1
40
+
41
+ ### Fixed
42
+
43
+ * Escape HTML from the params to avoid XSS (#1790)
44
+ * Remove vegas as a dependency (#1780)
45
+
46
+ ### Added
47
+
48
+ * Add support for specifying queues that workers should ignore when using globs
49
+ * Allow plugins to have spaces in their name (#1718)
50
+
51
+ ## 2.2.0
52
+
53
+ ### Added
54
+
55
+ * Add 'Retry Failed Jobs' button to Failed page
56
+
57
+ ### Fixed
58
+
59
+ * Loading railtie when it did not exist #1765
60
+ * Fix closing parent Redis connection in child process after fork
61
+ * Fix the failed queues list on /queues UI when the RedisMultiQueue backend is used #1638
62
+
63
+ ## 2.1.0
64
+
65
+ ### Security
66
+
67
+ * Fix XSS via URL path in admin web UI queues view #1687
68
+ * Replace onclick handlers in server code to support Content Security Policies that don't allow 'unsafe-inline'
69
+ * Update jQuery from 1.12.4 to 3.6.0
70
+
71
+ ### Added
72
+
73
+ * Add requeue_queue method to Resque::Failure::Multiple #1659
74
+ * Confirmation prompt in admin front-end before submitting the retry of all failed jobs. #1753
75
+ * Railtie for default rake task setup when in Rails. #1715
76
+ * Added two new hooks.
77
+ - `queue_empty` when the job queue empties and the worker becomes idle
78
+ - `worker_exit` when the worker exits
79
+
80
+ See [docs/HOOKS.md](http://github.com/resque/resque/blob/master/docs/HOOKS.md) for
81
+ further details. (@jeremywadsack)
82
+
83
+ ### Fixed
84
+
85
+ * live poller shouldn't restart itself until it successds or fails. #1740
86
+ * Fix parsing worker_id when queue name includes colon. #1691
87
+ * Prune workers which haven't been registered but have set a heartbeat. #1751
88
+ * `Resque::Failure::Multiple.remove` did not pass on the queue parameter
89
+
90
+ ## 2.0.0 (2018-11-06)
91
+
92
+ ### Fixed
93
+ * Fix Airbrake failure backend
94
+ * Fix failed jobs page "argument out of range" error
95
+
96
+ ### Changed
97
+ * Remove support for Rubies < 2.3
98
+ * Remove support to Rails < 4
99
+ * Reduce the number of redis calls when trying to get the list of queues
100
+ * Only run `eager_load!` if `Rails.application.config.eager_load` is true
101
+ * Don't display log message if running without hooks
102
+ * Add Support to Redis 4.0
103
+ * Drop complex Redis identifier logic in favor of simple inspect
104
+ * When a child process is killed, report the signal it was terminated with
105
+ * Report a job that pruned worker was processing
106
+
107
+ ### Added
108
+
109
+ * Allow to configure statistic data store
4
110
 
5
- ## 1.27.4 (2017-4-15)
111
+ ## 1.27.4 (2017-04-15)
6
112
 
7
113
  ### Fixed
8
114
  * Fix issue where removing a failure from Resque web didn't work when using `RedisMultiQueue` backend.