sidekiq 0.10.0 → 7.2.0

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

Potentially problematic release.


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

Files changed (234) hide show
  1. checksums.yaml +7 -0
  2. data/Changes.md +2082 -0
  3. data/LICENSE.txt +9 -0
  4. data/README.md +73 -27
  5. data/bin/sidekiq +25 -9
  6. data/bin/sidekiqload +247 -0
  7. data/bin/sidekiqmon +11 -0
  8. data/lib/generators/sidekiq/job_generator.rb +57 -0
  9. data/lib/generators/sidekiq/templates/job.rb.erb +9 -0
  10. data/lib/generators/sidekiq/templates/job_spec.rb.erb +6 -0
  11. data/lib/generators/sidekiq/templates/job_test.rb.erb +8 -0
  12. data/lib/sidekiq/api.rb +1145 -0
  13. data/lib/sidekiq/capsule.rb +127 -0
  14. data/lib/sidekiq/cli.rb +348 -109
  15. data/lib/sidekiq/client.rb +241 -41
  16. data/lib/sidekiq/component.rb +68 -0
  17. data/lib/sidekiq/config.rb +287 -0
  18. data/lib/sidekiq/deploy.rb +62 -0
  19. data/lib/sidekiq/embedded.rb +61 -0
  20. data/lib/sidekiq/fetch.rb +88 -0
  21. data/lib/sidekiq/job.rb +374 -0
  22. data/lib/sidekiq/job_logger.rb +51 -0
  23. data/lib/sidekiq/job_retry.rb +301 -0
  24. data/lib/sidekiq/job_util.rb +107 -0
  25. data/lib/sidekiq/launcher.rb +271 -0
  26. data/lib/sidekiq/logger.rb +131 -0
  27. data/lib/sidekiq/manager.rb +96 -103
  28. data/lib/sidekiq/metrics/query.rb +155 -0
  29. data/lib/sidekiq/metrics/shared.rb +95 -0
  30. data/lib/sidekiq/metrics/tracking.rb +136 -0
  31. data/lib/sidekiq/middleware/chain.rb +149 -38
  32. data/lib/sidekiq/middleware/current_attributes.rb +95 -0
  33. data/lib/sidekiq/middleware/i18n.rb +42 -0
  34. data/lib/sidekiq/middleware/modules.rb +21 -0
  35. data/lib/sidekiq/monitor.rb +146 -0
  36. data/lib/sidekiq/paginator.rb +55 -0
  37. data/lib/sidekiq/processor.rb +246 -61
  38. data/lib/sidekiq/rails.rb +60 -13
  39. data/lib/sidekiq/redis_client_adapter.rb +111 -0
  40. data/lib/sidekiq/redis_connection.rb +68 -15
  41. data/lib/sidekiq/ring_buffer.rb +29 -0
  42. data/lib/sidekiq/scheduled.rb +236 -0
  43. data/lib/sidekiq/sd_notify.rb +149 -0
  44. data/lib/sidekiq/systemd.rb +24 -0
  45. data/lib/sidekiq/testing/inline.rb +30 -0
  46. data/lib/sidekiq/testing.rb +310 -10
  47. data/lib/sidekiq/transaction_aware_client.rb +44 -0
  48. data/lib/sidekiq/version.rb +4 -1
  49. data/lib/sidekiq/web/action.rb +93 -0
  50. data/lib/sidekiq/web/application.rb +463 -0
  51. data/lib/sidekiq/web/csrf_protection.rb +180 -0
  52. data/lib/sidekiq/web/helpers.rb +364 -0
  53. data/lib/sidekiq/web/router.rb +104 -0
  54. data/lib/sidekiq/web.rb +143 -74
  55. data/lib/sidekiq/worker_compatibility_alias.rb +13 -0
  56. data/lib/sidekiq.rb +120 -73
  57. data/sidekiq.gemspec +26 -23
  58. data/web/assets/images/apple-touch-icon.png +0 -0
  59. data/web/assets/images/favicon.ico +0 -0
  60. data/web/assets/images/logo.png +0 -0
  61. data/web/assets/images/status.png +0 -0
  62. data/web/assets/javascripts/application.js +177 -3
  63. data/web/assets/javascripts/base-charts.js +106 -0
  64. data/web/assets/javascripts/chart.min.js +13 -0
  65. data/web/assets/javascripts/chartjs-plugin-annotation.min.js +7 -0
  66. data/web/assets/javascripts/dashboard-charts.js +182 -0
  67. data/web/assets/javascripts/dashboard.js +57 -0
  68. data/web/assets/javascripts/metrics.js +298 -0
  69. data/web/assets/stylesheets/application-dark.css +147 -0
  70. data/web/assets/stylesheets/application-rtl.css +153 -0
  71. data/web/assets/stylesheets/application.css +729 -7
  72. data/web/assets/stylesheets/bootstrap-rtl.min.css +9 -0
  73. data/web/assets/stylesheets/bootstrap.css +5 -0
  74. data/web/locales/ar.yml +87 -0
  75. data/web/locales/cs.yml +78 -0
  76. data/web/locales/da.yml +75 -0
  77. data/web/locales/de.yml +81 -0
  78. data/web/locales/el.yml +87 -0
  79. data/web/locales/en.yml +101 -0
  80. data/web/locales/es.yml +86 -0
  81. data/web/locales/fa.yml +80 -0
  82. data/web/locales/fr.yml +99 -0
  83. data/web/locales/gd.yml +99 -0
  84. data/web/locales/he.yml +80 -0
  85. data/web/locales/hi.yml +75 -0
  86. data/web/locales/it.yml +69 -0
  87. data/web/locales/ja.yml +91 -0
  88. data/web/locales/ko.yml +68 -0
  89. data/web/locales/lt.yml +83 -0
  90. data/web/locales/nb.yml +77 -0
  91. data/web/locales/nl.yml +68 -0
  92. data/web/locales/pl.yml +59 -0
  93. data/web/locales/pt-br.yml +96 -0
  94. data/web/locales/pt.yml +67 -0
  95. data/web/locales/ru.yml +83 -0
  96. data/web/locales/sv.yml +68 -0
  97. data/web/locales/ta.yml +75 -0
  98. data/web/locales/uk.yml +77 -0
  99. data/web/locales/ur.yml +80 -0
  100. data/web/locales/vi.yml +83 -0
  101. data/web/locales/zh-cn.yml +95 -0
  102. data/web/locales/zh-tw.yml +102 -0
  103. data/web/views/_footer.erb +23 -0
  104. data/web/views/_job_info.erb +105 -0
  105. data/web/views/_metrics_period_select.erb +12 -0
  106. data/web/views/_nav.erb +52 -0
  107. data/web/views/_paging.erb +25 -0
  108. data/web/views/_poll_link.erb +4 -0
  109. data/web/views/_status.erb +4 -0
  110. data/web/views/_summary.erb +40 -0
  111. data/web/views/busy.erb +148 -0
  112. data/web/views/dashboard.erb +105 -0
  113. data/web/views/dead.erb +34 -0
  114. data/web/views/filtering.erb +7 -0
  115. data/web/views/layout.erb +42 -0
  116. data/web/views/metrics.erb +91 -0
  117. data/web/views/metrics_for_job.erb +59 -0
  118. data/web/views/morgue.erb +74 -0
  119. data/web/views/queue.erb +55 -0
  120. data/web/views/queues.erb +44 -0
  121. data/web/views/retries.erb +79 -0
  122. data/web/views/retry.erb +34 -0
  123. data/web/views/scheduled.erb +56 -0
  124. data/web/views/scheduled_job_info.erb +8 -0
  125. metadata +159 -237
  126. data/.gitignore +0 -6
  127. data/.rvmrc +0 -4
  128. data/COMM-LICENSE +0 -75
  129. data/Gemfile +0 -10
  130. data/LICENSE +0 -22
  131. data/Rakefile +0 -9
  132. data/TODO.md +0 -1
  133. data/bin/client +0 -7
  134. data/bin/sidekiqctl +0 -43
  135. data/config.ru +0 -8
  136. data/examples/chef/cookbooks/sidekiq/README.rdoc +0 -11
  137. data/examples/chef/cookbooks/sidekiq/recipes/default.rb +0 -55
  138. data/examples/chef/cookbooks/sidekiq/templates/default/monitrc.conf.erb +0 -8
  139. data/examples/chef/cookbooks/sidekiq/templates/default/sidekiq.erb +0 -219
  140. data/examples/chef/cookbooks/sidekiq/templates/default/sidekiq.yml.erb +0 -22
  141. data/examples/config.yml +0 -9
  142. data/examples/monitrc.conf +0 -6
  143. data/examples/por.rb +0 -27
  144. data/examples/scheduling.rb +0 -37
  145. data/examples/sinkiq.rb +0 -57
  146. data/examples/web-ui.png +0 -0
  147. data/lib/sidekiq/capistrano.rb +0 -32
  148. data/lib/sidekiq/extensions/action_mailer.rb +0 -26
  149. data/lib/sidekiq/extensions/active_record.rb +0 -27
  150. data/lib/sidekiq/extensions/generic_proxy.rb +0 -21
  151. data/lib/sidekiq/middleware/client/unique_jobs.rb +0 -32
  152. data/lib/sidekiq/middleware/server/active_record.rb +0 -13
  153. data/lib/sidekiq/middleware/server/exception_handler.rb +0 -38
  154. data/lib/sidekiq/middleware/server/failure_jobs.rb +0 -24
  155. data/lib/sidekiq/middleware/server/logging.rb +0 -27
  156. data/lib/sidekiq/middleware/server/retry_jobs.rb +0 -59
  157. data/lib/sidekiq/middleware/server/unique_jobs.rb +0 -15
  158. data/lib/sidekiq/retry.rb +0 -57
  159. data/lib/sidekiq/util.rb +0 -61
  160. data/lib/sidekiq/worker.rb +0 -37
  161. data/myapp/.gitignore +0 -15
  162. data/myapp/Capfile +0 -5
  163. data/myapp/Gemfile +0 -19
  164. data/myapp/Gemfile.lock +0 -143
  165. data/myapp/Rakefile +0 -7
  166. data/myapp/app/controllers/application_controller.rb +0 -3
  167. data/myapp/app/controllers/work_controller.rb +0 -38
  168. data/myapp/app/helpers/application_helper.rb +0 -2
  169. data/myapp/app/mailers/.gitkeep +0 -0
  170. data/myapp/app/mailers/user_mailer.rb +0 -9
  171. data/myapp/app/models/.gitkeep +0 -0
  172. data/myapp/app/models/post.rb +0 -5
  173. data/myapp/app/views/layouts/application.html.erb +0 -14
  174. data/myapp/app/views/user_mailer/greetings.html.erb +0 -3
  175. data/myapp/app/views/work/index.html.erb +0 -1
  176. data/myapp/app/workers/hard_worker.rb +0 -9
  177. data/myapp/config/application.rb +0 -59
  178. data/myapp/config/boot.rb +0 -6
  179. data/myapp/config/database.yml +0 -25
  180. data/myapp/config/deploy.rb +0 -15
  181. data/myapp/config/environment.rb +0 -5
  182. data/myapp/config/environments/development.rb +0 -38
  183. data/myapp/config/environments/production.rb +0 -67
  184. data/myapp/config/environments/test.rb +0 -37
  185. data/myapp/config/initializers/backtrace_silencers.rb +0 -7
  186. data/myapp/config/initializers/inflections.rb +0 -15
  187. data/myapp/config/initializers/mime_types.rb +0 -5
  188. data/myapp/config/initializers/secret_token.rb +0 -7
  189. data/myapp/config/initializers/session_store.rb +0 -8
  190. data/myapp/config/initializers/sidekiq.rb +0 -6
  191. data/myapp/config/initializers/wrap_parameters.rb +0 -14
  192. data/myapp/config/locales/en.yml +0 -5
  193. data/myapp/config/routes.rb +0 -10
  194. data/myapp/config.ru +0 -4
  195. data/myapp/db/migrate/20120123214055_create_posts.rb +0 -10
  196. data/myapp/db/seeds.rb +0 -7
  197. data/myapp/lib/assets/.gitkeep +0 -0
  198. data/myapp/lib/tasks/.gitkeep +0 -0
  199. data/myapp/log/.gitkeep +0 -0
  200. data/myapp/script/rails +0 -6
  201. data/test/config.yml +0 -9
  202. data/test/fake_env.rb +0 -0
  203. data/test/helper.rb +0 -15
  204. data/test/test_cli.rb +0 -168
  205. data/test/test_client.rb +0 -105
  206. data/test/test_extensions.rb +0 -68
  207. data/test/test_manager.rb +0 -43
  208. data/test/test_middleware.rb +0 -92
  209. data/test/test_processor.rb +0 -32
  210. data/test/test_retry.rb +0 -83
  211. data/test/test_stats.rb +0 -78
  212. data/test/test_testing.rb +0 -65
  213. data/test/test_web.rb +0 -61
  214. data/web/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
  215. data/web/assets/images/bootstrap/glyphicons-halflings.png +0 -0
  216. data/web/assets/javascripts/vendor/bootstrap/bootstrap-alert.js +0 -91
  217. data/web/assets/javascripts/vendor/bootstrap/bootstrap-button.js +0 -98
  218. data/web/assets/javascripts/vendor/bootstrap/bootstrap-carousel.js +0 -154
  219. data/web/assets/javascripts/vendor/bootstrap/bootstrap-collapse.js +0 -136
  220. data/web/assets/javascripts/vendor/bootstrap/bootstrap-dropdown.js +0 -92
  221. data/web/assets/javascripts/vendor/bootstrap/bootstrap-modal.js +0 -210
  222. data/web/assets/javascripts/vendor/bootstrap/bootstrap-popover.js +0 -95
  223. data/web/assets/javascripts/vendor/bootstrap/bootstrap-scrollspy.js +0 -125
  224. data/web/assets/javascripts/vendor/bootstrap/bootstrap-tab.js +0 -130
  225. data/web/assets/javascripts/vendor/bootstrap/bootstrap-tooltip.js +0 -270
  226. data/web/assets/javascripts/vendor/bootstrap/bootstrap-transition.js +0 -51
  227. data/web/assets/javascripts/vendor/bootstrap/bootstrap-typeahead.js +0 -271
  228. data/web/assets/javascripts/vendor/bootstrap.js +0 -12
  229. data/web/assets/javascripts/vendor/jquery.js +0 -9266
  230. data/web/assets/stylesheets/vendor/bootstrap-responsive.css +0 -567
  231. data/web/assets/stylesheets/vendor/bootstrap.css +0 -3365
  232. data/web/views/index.slim +0 -62
  233. data/web/views/layout.slim +0 -24
  234. data/web/views/queue.slim +0 -11
metadata CHANGED
@@ -1,308 +1,230 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
5
- prerelease:
4
+ version: 7.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mike Perham
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-03-28 00:00:00.000000000 Z
11
+ date: 2023-10-31 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: redis
16
- requirement: &70249655983600 !ruby/object:Gem::Requirement
17
- none: false
14
+ name: redis-client
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: 0.14.0
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70249655983600
25
- - !ruby/object:Gem::Dependency
26
- name: redis-namespace
27
- requirement: &70249655982380 !ruby/object:Gem::Requirement
28
- none: false
22
+ version_requirements: !ruby/object:Gem::Requirement
29
23
  requirements:
30
- - - ! '>='
24
+ - - ">="
31
25
  - !ruby/object:Gem::Version
32
- version: '0'
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *70249655982380
26
+ version: 0.14.0
36
27
  - !ruby/object:Gem::Dependency
37
28
  name: connection_pool
38
- requirement: &70249655981700 !ruby/object:Gem::Requirement
39
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
40
30
  requirements:
41
- - - ~>
31
+ - - ">="
42
32
  - !ruby/object:Gem::Version
43
- version: 0.9.0
33
+ version: 2.3.0
44
34
  type: :runtime
45
35
  prerelease: false
46
- version_requirements: *70249655981700
47
- - !ruby/object:Gem::Dependency
48
- name: celluloid
49
- requirement: &70249655981280 !ruby/object:Gem::Requirement
50
- none: false
36
+ version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ! '>='
38
+ - - ">="
53
39
  - !ruby/object:Gem::Version
54
- version: '0'
55
- type: :runtime
56
- prerelease: false
57
- version_requirements: *70249655981280
40
+ version: 2.3.0
58
41
  - !ruby/object:Gem::Dependency
59
- name: multi_json
60
- requirement: &70249655980820 !ruby/object:Gem::Requirement
61
- none: false
42
+ name: rack
43
+ requirement: !ruby/object:Gem::Requirement
62
44
  requirements:
63
- - - ! '>='
45
+ - - ">="
64
46
  - !ruby/object:Gem::Version
65
- version: '0'
47
+ version: 2.2.4
66
48
  type: :runtime
67
49
  prerelease: false
68
- version_requirements: *70249655980820
69
- - !ruby/object:Gem::Dependency
70
- name: minitest
71
- requirement: &70249655980400 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: *70249655980400
80
- - !ruby/object:Gem::Dependency
81
- name: sinatra
82
- requirement: &70249656007360 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ! '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
88
- type: :development
89
- prerelease: false
90
- version_requirements: *70249656007360
91
- - !ruby/object:Gem::Dependency
92
- name: slim
93
- requirement: &70249656006940 !ruby/object:Gem::Requirement
94
- none: false
95
- requirements:
96
- - - ! '>='
97
- - !ruby/object:Gem::Version
98
- version: '0'
99
- type: :development
100
- prerelease: false
101
- version_requirements: *70249656006940
102
- - !ruby/object:Gem::Dependency
103
- name: rake
104
- requirement: &70249656006520 !ruby/object:Gem::Requirement
105
- none: false
50
+ version_requirements: !ruby/object:Gem::Requirement
106
51
  requirements:
107
- - - ! '>='
52
+ - - ">="
108
53
  - !ruby/object:Gem::Version
109
- version: '0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: *70249656006520
54
+ version: 2.2.4
113
55
  - !ruby/object:Gem::Dependency
114
- name: actionmailer
115
- requirement: &70249656006020 !ruby/object:Gem::Requirement
116
- none: false
56
+ name: concurrent-ruby
57
+ requirement: !ruby/object:Gem::Requirement
117
58
  requirements:
118
- - - ~>
59
+ - - "<"
119
60
  - !ruby/object:Gem::Version
120
- version: '3'
121
- type: :development
61
+ version: '2'
62
+ type: :runtime
122
63
  prerelease: false
123
- version_requirements: *70249656006020
124
- - !ruby/object:Gem::Dependency
125
- name: activerecord
126
- requirement: &70249656005520 !ruby/object:Gem::Requirement
127
- none: false
64
+ version_requirements: !ruby/object:Gem::Requirement
128
65
  requirements:
129
- - - ~>
66
+ - - "<"
130
67
  - !ruby/object:Gem::Version
131
- version: '3'
132
- type: :development
133
- prerelease: false
134
- version_requirements: *70249656005520
135
- description: Simple, efficient message processing for Ruby
68
+ version: '2'
69
+ description: Simple, efficient background processing for Ruby.
136
70
  email:
137
- - mperham@gmail.com
71
+ - info@contribsys.com
138
72
  executables:
139
73
  - sidekiq
140
- - sidekiqctl
74
+ - sidekiqmon
141
75
  extensions: []
142
76
  extra_rdoc_files: []
143
77
  files:
144
- - .gitignore
145
- - .rvmrc
146
- - COMM-LICENSE
147
78
  - Changes.md
148
- - Gemfile
149
- - LICENSE
79
+ - LICENSE.txt
150
80
  - README.md
151
- - Rakefile
152
- - TODO.md
153
- - bin/client
154
81
  - bin/sidekiq
155
- - bin/sidekiqctl
156
- - config.ru
157
- - examples/chef/cookbooks/sidekiq/README.rdoc
158
- - examples/chef/cookbooks/sidekiq/recipes/default.rb
159
- - examples/chef/cookbooks/sidekiq/templates/default/monitrc.conf.erb
160
- - examples/chef/cookbooks/sidekiq/templates/default/sidekiq.erb
161
- - examples/chef/cookbooks/sidekiq/templates/default/sidekiq.yml.erb
162
- - examples/config.yml
163
- - examples/monitrc.conf
164
- - examples/por.rb
165
- - examples/scheduling.rb
166
- - examples/sinkiq.rb
167
- - examples/web-ui.png
82
+ - bin/sidekiqload
83
+ - bin/sidekiqmon
84
+ - lib/generators/sidekiq/job_generator.rb
85
+ - lib/generators/sidekiq/templates/job.rb.erb
86
+ - lib/generators/sidekiq/templates/job_spec.rb.erb
87
+ - lib/generators/sidekiq/templates/job_test.rb.erb
168
88
  - lib/sidekiq.rb
169
- - lib/sidekiq/capistrano.rb
89
+ - lib/sidekiq/api.rb
90
+ - lib/sidekiq/capsule.rb
170
91
  - lib/sidekiq/cli.rb
171
92
  - lib/sidekiq/client.rb
172
- - lib/sidekiq/extensions/action_mailer.rb
173
- - lib/sidekiq/extensions/active_record.rb
174
- - lib/sidekiq/extensions/generic_proxy.rb
93
+ - lib/sidekiq/component.rb
94
+ - lib/sidekiq/config.rb
95
+ - lib/sidekiq/deploy.rb
96
+ - lib/sidekiq/embedded.rb
97
+ - lib/sidekiq/fetch.rb
98
+ - lib/sidekiq/job.rb
99
+ - lib/sidekiq/job_logger.rb
100
+ - lib/sidekiq/job_retry.rb
101
+ - lib/sidekiq/job_util.rb
102
+ - lib/sidekiq/launcher.rb
103
+ - lib/sidekiq/logger.rb
175
104
  - lib/sidekiq/manager.rb
105
+ - lib/sidekiq/metrics/query.rb
106
+ - lib/sidekiq/metrics/shared.rb
107
+ - lib/sidekiq/metrics/tracking.rb
176
108
  - lib/sidekiq/middleware/chain.rb
177
- - lib/sidekiq/middleware/client/unique_jobs.rb
178
- - lib/sidekiq/middleware/server/active_record.rb
179
- - lib/sidekiq/middleware/server/exception_handler.rb
180
- - lib/sidekiq/middleware/server/failure_jobs.rb
181
- - lib/sidekiq/middleware/server/logging.rb
182
- - lib/sidekiq/middleware/server/retry_jobs.rb
183
- - lib/sidekiq/middleware/server/unique_jobs.rb
109
+ - lib/sidekiq/middleware/current_attributes.rb
110
+ - lib/sidekiq/middleware/i18n.rb
111
+ - lib/sidekiq/middleware/modules.rb
112
+ - lib/sidekiq/monitor.rb
113
+ - lib/sidekiq/paginator.rb
184
114
  - lib/sidekiq/processor.rb
185
115
  - lib/sidekiq/rails.rb
116
+ - lib/sidekiq/redis_client_adapter.rb
186
117
  - lib/sidekiq/redis_connection.rb
187
- - lib/sidekiq/retry.rb
118
+ - lib/sidekiq/ring_buffer.rb
119
+ - lib/sidekiq/scheduled.rb
120
+ - lib/sidekiq/sd_notify.rb
121
+ - lib/sidekiq/systemd.rb
188
122
  - lib/sidekiq/testing.rb
189
- - lib/sidekiq/util.rb
123
+ - lib/sidekiq/testing/inline.rb
124
+ - lib/sidekiq/transaction_aware_client.rb
190
125
  - lib/sidekiq/version.rb
191
126
  - lib/sidekiq/web.rb
192
- - lib/sidekiq/worker.rb
193
- - myapp/.gitignore
194
- - myapp/Capfile
195
- - myapp/Gemfile
196
- - myapp/Gemfile.lock
197
- - myapp/Rakefile
198
- - myapp/app/controllers/application_controller.rb
199
- - myapp/app/controllers/work_controller.rb
200
- - myapp/app/helpers/application_helper.rb
201
- - myapp/app/mailers/.gitkeep
202
- - myapp/app/mailers/user_mailer.rb
203
- - myapp/app/models/.gitkeep
204
- - myapp/app/models/post.rb
205
- - myapp/app/views/layouts/application.html.erb
206
- - myapp/app/views/user_mailer/greetings.html.erb
207
- - myapp/app/views/work/index.html.erb
208
- - myapp/app/workers/hard_worker.rb
209
- - myapp/config.ru
210
- - myapp/config/application.rb
211
- - myapp/config/boot.rb
212
- - myapp/config/database.yml
213
- - myapp/config/deploy.rb
214
- - myapp/config/environment.rb
215
- - myapp/config/environments/development.rb
216
- - myapp/config/environments/production.rb
217
- - myapp/config/environments/test.rb
218
- - myapp/config/initializers/backtrace_silencers.rb
219
- - myapp/config/initializers/inflections.rb
220
- - myapp/config/initializers/mime_types.rb
221
- - myapp/config/initializers/secret_token.rb
222
- - myapp/config/initializers/session_store.rb
223
- - myapp/config/initializers/sidekiq.rb
224
- - myapp/config/initializers/wrap_parameters.rb
225
- - myapp/config/locales/en.yml
226
- - myapp/config/routes.rb
227
- - myapp/db/migrate/20120123214055_create_posts.rb
228
- - myapp/db/seeds.rb
229
- - myapp/lib/assets/.gitkeep
230
- - myapp/lib/tasks/.gitkeep
231
- - myapp/log/.gitkeep
232
- - myapp/script/rails
127
+ - lib/sidekiq/web/action.rb
128
+ - lib/sidekiq/web/application.rb
129
+ - lib/sidekiq/web/csrf_protection.rb
130
+ - lib/sidekiq/web/helpers.rb
131
+ - lib/sidekiq/web/router.rb
132
+ - lib/sidekiq/worker_compatibility_alias.rb
233
133
  - sidekiq.gemspec
234
- - test/config.yml
235
- - test/fake_env.rb
236
- - test/helper.rb
237
- - test/test_cli.rb
238
- - test/test_client.rb
239
- - test/test_extensions.rb
240
- - test/test_manager.rb
241
- - test/test_middleware.rb
242
- - test/test_processor.rb
243
- - test/test_retry.rb
244
- - test/test_stats.rb
245
- - test/test_testing.rb
246
- - test/test_web.rb
247
- - web/assets/images/bootstrap/glyphicons-halflings-white.png
248
- - web/assets/images/bootstrap/glyphicons-halflings.png
134
+ - web/assets/images/apple-touch-icon.png
135
+ - web/assets/images/favicon.ico
136
+ - web/assets/images/logo.png
137
+ - web/assets/images/status.png
249
138
  - web/assets/javascripts/application.js
250
- - web/assets/javascripts/vendor/bootstrap.js
251
- - web/assets/javascripts/vendor/bootstrap/bootstrap-alert.js
252
- - web/assets/javascripts/vendor/bootstrap/bootstrap-button.js
253
- - web/assets/javascripts/vendor/bootstrap/bootstrap-carousel.js
254
- - web/assets/javascripts/vendor/bootstrap/bootstrap-collapse.js
255
- - web/assets/javascripts/vendor/bootstrap/bootstrap-dropdown.js
256
- - web/assets/javascripts/vendor/bootstrap/bootstrap-modal.js
257
- - web/assets/javascripts/vendor/bootstrap/bootstrap-popover.js
258
- - web/assets/javascripts/vendor/bootstrap/bootstrap-scrollspy.js
259
- - web/assets/javascripts/vendor/bootstrap/bootstrap-tab.js
260
- - web/assets/javascripts/vendor/bootstrap/bootstrap-tooltip.js
261
- - web/assets/javascripts/vendor/bootstrap/bootstrap-transition.js
262
- - web/assets/javascripts/vendor/bootstrap/bootstrap-typeahead.js
263
- - web/assets/javascripts/vendor/jquery.js
139
+ - web/assets/javascripts/base-charts.js
140
+ - web/assets/javascripts/chart.min.js
141
+ - web/assets/javascripts/chartjs-plugin-annotation.min.js
142
+ - web/assets/javascripts/dashboard-charts.js
143
+ - web/assets/javascripts/dashboard.js
144
+ - web/assets/javascripts/metrics.js
145
+ - web/assets/stylesheets/application-dark.css
146
+ - web/assets/stylesheets/application-rtl.css
264
147
  - web/assets/stylesheets/application.css
265
- - web/assets/stylesheets/vendor/bootstrap-responsive.css
266
- - web/assets/stylesheets/vendor/bootstrap.css
267
- - web/views/index.slim
268
- - web/views/layout.slim
269
- - web/views/queue.slim
270
- homepage: http://mperham.github.com/sidekiq
271
- licenses: []
272
- post_install_message:
148
+ - web/assets/stylesheets/bootstrap-rtl.min.css
149
+ - web/assets/stylesheets/bootstrap.css
150
+ - web/locales/ar.yml
151
+ - web/locales/cs.yml
152
+ - web/locales/da.yml
153
+ - web/locales/de.yml
154
+ - web/locales/el.yml
155
+ - web/locales/en.yml
156
+ - web/locales/es.yml
157
+ - web/locales/fa.yml
158
+ - web/locales/fr.yml
159
+ - web/locales/gd.yml
160
+ - web/locales/he.yml
161
+ - web/locales/hi.yml
162
+ - web/locales/it.yml
163
+ - web/locales/ja.yml
164
+ - web/locales/ko.yml
165
+ - web/locales/lt.yml
166
+ - web/locales/nb.yml
167
+ - web/locales/nl.yml
168
+ - web/locales/pl.yml
169
+ - web/locales/pt-br.yml
170
+ - web/locales/pt.yml
171
+ - web/locales/ru.yml
172
+ - web/locales/sv.yml
173
+ - web/locales/ta.yml
174
+ - web/locales/uk.yml
175
+ - web/locales/ur.yml
176
+ - web/locales/vi.yml
177
+ - web/locales/zh-cn.yml
178
+ - web/locales/zh-tw.yml
179
+ - web/views/_footer.erb
180
+ - web/views/_job_info.erb
181
+ - web/views/_metrics_period_select.erb
182
+ - web/views/_nav.erb
183
+ - web/views/_paging.erb
184
+ - web/views/_poll_link.erb
185
+ - web/views/_status.erb
186
+ - web/views/_summary.erb
187
+ - web/views/busy.erb
188
+ - web/views/dashboard.erb
189
+ - web/views/dead.erb
190
+ - web/views/filtering.erb
191
+ - web/views/layout.erb
192
+ - web/views/metrics.erb
193
+ - web/views/metrics_for_job.erb
194
+ - web/views/morgue.erb
195
+ - web/views/queue.erb
196
+ - web/views/queues.erb
197
+ - web/views/retries.erb
198
+ - web/views/retry.erb
199
+ - web/views/scheduled.erb
200
+ - web/views/scheduled_job_info.erb
201
+ homepage: https://sidekiq.org
202
+ licenses:
203
+ - LGPL-3.0
204
+ metadata:
205
+ homepage_uri: https://sidekiq.org
206
+ bug_tracker_uri: https://github.com/sidekiq/sidekiq/issues
207
+ documentation_uri: https://github.com/sidekiq/sidekiq/wiki
208
+ changelog_uri: https://github.com/sidekiq/sidekiq/blob/main/Changes.md
209
+ source_code_uri: https://github.com/sidekiq/sidekiq
210
+ rubygems_mfa_required: 'true'
211
+ post_install_message:
273
212
  rdoc_options: []
274
213
  require_paths:
275
214
  - lib
276
215
  required_ruby_version: !ruby/object:Gem::Requirement
277
- none: false
278
216
  requirements:
279
- - - ! '>='
217
+ - - ">="
280
218
  - !ruby/object:Gem::Version
281
- version: '0'
219
+ version: 2.7.0
282
220
  required_rubygems_version: !ruby/object:Gem::Requirement
283
- none: false
284
221
  requirements:
285
- - - ! '>='
222
+ - - ">="
286
223
  - !ruby/object:Gem::Version
287
224
  version: '0'
288
225
  requirements: []
289
- rubyforge_project:
290
- rubygems_version: 1.8.15
291
- signing_key:
292
- specification_version: 3
293
- summary: Simple, efficient message processing for Ruby
294
- test_files:
295
- - test/config.yml
296
- - test/fake_env.rb
297
- - test/helper.rb
298
- - test/test_cli.rb
299
- - test/test_client.rb
300
- - test/test_extensions.rb
301
- - test/test_manager.rb
302
- - test/test_middleware.rb
303
- - test/test_processor.rb
304
- - test/test_retry.rb
305
- - test/test_stats.rb
306
- - test/test_testing.rb
307
- - test/test_web.rb
308
- has_rdoc:
226
+ rubygems_version: 3.4.20
227
+ signing_key:
228
+ specification_version: 4
229
+ summary: Simple, efficient background processing for Ruby
230
+ test_files: []
data/.gitignore DELETED
@@ -1,6 +0,0 @@
1
- tags
2
- Gemfile.lock
3
- *.swp
4
- dump.rdb
5
- .rbx
6
- coverage/
data/.rvmrc DELETED
@@ -1,4 +0,0 @@
1
- export RUBYOPT="-Ilib:test"
2
- export JRUBY_OPTS="--1.9"
3
- rvm use 1.9.3@sidekiq --create
4
- #rvm use jruby@sidekiq --create
data/COMM-LICENSE DELETED
@@ -1,75 +0,0 @@
1
- THIS LICENSE AGREEMENT DESCRIBES YOUR RIGHTS WITH RESPECT TO THE SOFTWARE AND ITS COMPONENTS.
2
-
3
- 1. OWNERSHIP, LICENSE GRANT
4
-
5
- This is a license agreement and not an agreement for sale. We reserve ownership of all intellectual property rights inherent in or relating to the Software, which include, but are not limited to, all copyright, patent rights, all rights in relation to registered and unregistered trademarks (including service marks), confidential information (including trade secrets and know-how) and all rights other than those expressly granted by this License Agreement.
6
-
7
- Subject to the payment of the fee required and subject to the terms and conditions of this License Agreement, We grant to You a revocable, non- transferable and non-exclusive license (i) for Designated User(s) (as defined below) within Your organization to install and use the Software on any workstations used exclusively by such Designated User and (ii) for You to install and use the Software in connection with unlimited domains and sub-domains on unlimited servers, solely in connection with distribution of the Software in accordance with sections 3 and 4 below. This license is not sublicensable except as explicitly set forth herein. “Designated User(s)” shall mean Your employee(s) acting within the scope of their employment or Your consultant(s) or contractor(s) acting within the scope of the services they provide for You or on Your behalf for whom You have purchased a license to use the Software.
8
-
9
- In addition to the other terms contained herein, We grant to You a revocable, non- transferable and non-exclusive license to install and use the Software on a single computer (the “Trial License”) strictly for Your internal evaluation and review purposes and not for production purposes. This Trial License applies only if You have registered with Us for a Trial License of the Software and shall be effective for forty-five (45) consecutive days following the date of registration (“the Trial Period”). You may only register for a Trial License once in any eighteen month period. You agree not to use a Trial License for any purpose other than determining whether to purchase a license to the Software. You are explicitly not permitted to distribute the Software to any user outside the Organization on whose behalf you have undertaken this license. Your rights to use the Trial License will immediately terminate upon the earlier of (i) the expiration of the Trial Period, or (ii) such time that You purchase a license to the Software. We reserve the right to terminate Your Trial License at any time in Our absolute and sole discretion.
10
-
11
- 2. PERMITTED USES, SOURCE CODE, MODIFICATIONS
12
-
13
- We provide You with source code so that You can create Modifications of the original Software, where Modification means: a) any addition to or deletion from the contents of a file included in the original Software or previous Modifications created by You, or b) any new file that contains any part of the original Software or previous Modifications. While You retain all rights to any original work authored by You as part of the Modifications, We continue to own all copyright and other intellectual property rights in the Software.
14
-
15
- 3. DISTRIBUTION
16
-
17
- You may distribute the Software in any applications, frameworks, or elements (collectively referred to as an “Application” or “Applications”) that you develop using the Software in accordance with this License Agreement, provided that such distribution does not violate the restrictions set forth in section 4 of this License Agreement. You must not remove, obscure or interfere with any copyright, acknowledgment, attribution, trademark, warning or disclaimer statement affixed to, incorporated in or otherwise applied in connection with the Software.
18
-
19
- You are required to ensure that the Software is not reused by or with any applications other than those with which You distribute it as permitted herein. For example, if You install the Software on a customer’s server, that customer is not permitted to use the Software independently of Your application, and must be informed as such.
20
-
21
- You will not owe Us any royalties for Your distribution of the Software in accordance with this License Agreement.
22
-
23
- 4. PROHIBITED USES
24
-
25
- You may not, without Our prior written consent, redistribute the Software or Modifications other than by including the Software or a portion thereof within Your own product, which must have substantially different functionality than the Software or Modifications and must not allow any third party to use the Software or Modifications, or any portions thereof, for software development or application development purposes. You are explicitly not allowed to redistribute the Software or Modifications as part of any product that can be described as a development toolkit or library, an application builder, a website builder or any product that is intended for use by software, application, or website developers or designers. You are not allowed to redistribute any part of the Software documentation. You may not change or remove the copyright notice from any of the files included in the Software or Modifications.
26
-
27
- UNDER NO CIRCUMSTANCES MAY YOU USE THE SOFTWARE FOR A PRODUCT THAT IS INTENDED FOR SOFTWARE OR APPLICATION DEVELOPMENT PURPOSES.
28
-
29
- The Open Source version of the Software (“GPL Version”) is licensed under the terms of the GNU General Public License versions 3.0 (“GPL”) and not under this License Agreement. If You, or another third party, has, at any time, developed all (or any portions of) the Application(s) using the GPL Version, You may not combine such development work with the Software and must license such Application(s) (or any portions derived there from) under the terms of the GNU General Public License version 3, a copy of which is located at http://www.gnu.org/copyleft/gpl.html.
30
-
31
- 5. TERMINATION
32
-
33
- This License Agreement and Your right to use the Software and Modifications will terminate immediately without notice if You fail to comply with the terms and conditions of this License Agreement. Upon termination, You agree to immediately cease using and destroy the Software or Modifications, including all accompanying documents. The provisions of sections 4, 5, 6, 7, 8, 9, 10 and 12 will survive any termination of this License Agreement.
34
-
35
- 6. DISCLAIMER OF WARRANTIES
36
-
37
- TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, WE AND OUR SUPPLIERS DISCLAIM ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE. WE DO NOT GUARANTEE THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, AND YOU ACKNOWLEDGE THAT IT IS NOT TECHNICALLY PRACTICABLE FOR US TO DO SO.
38
-
39
- 7. LIMITATION OF LIABILITIES
40
-
41
- TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL WE OR OUR SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION OR ANY OTHER PECUNIARY LAW) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN ANY CASE, OUR ENTIRE LIABILITY UNDER ANY PROVISION OF THIS LICENSE AGREEMENT SHALL BE LIMITED TO THE AMOUNT ACTUALLY PAID BY YOU FOR THE SOFTWARE.
42
-
43
- 8. VERIFICATION
44
-
45
- We or a certified auditor acting on Our behalf, may, upon its reasonable request and at its expense, audit You with respect to the use of the Software. Such audit may be conducted by mail, electronic means or through an in-person visit to Your place of business. Any such in-person audit shall be conducted during regular business hours at Your facilities and shall not unreasonably interfere with Your business activities. We shall not remove, copy, or redistribute any electronic material during the course of an audit. If an audit reveals that You are using the Software in a way that is in material violation of the terms of the License Agreement, then You shall pay Our reasonable costs of conducting the audit. In the case of a material violation, You agree to pay Us any amounts owing that are attributable to the unauthorized use. In the alternative, We reserve the right, at Our sole option, to terminate the licenses for the Software.
46
-
47
- 9. THIRD PARTY SOFTWARE
48
-
49
- Examples included in Software may provide links to third party libraries or code (collectively “Third Party Software”) to implement various functions. Third Party Software does not comprise part of the Software. In some cases, access to Third Party Software may be included along with the Software delivery as a convenience for demonstration purposes. Such source code and libraries may be included in the “…/examples” source tree delivered with the Software and do not comprise the Software. Licensee acknowledges (1) that some part of Third Party Software may require additional licensing of copyright and patents from the owners of such, and (2) that distribution of any of the Software referencing or including any portion of a Third Party Software may require appropriate licensing from such third parties.
50
-
51
- 10. PAYMENT AND TAXES
52
-
53
- If credit has been extended to You by Us, all payments under this License Agreement are due within thirty (30) days of the date We mail an invoice to You. If We have not extended credit to You, You shall be required to make payment concurrent with the delivery of the Software by Us. All amounts payable are gross amounts but exclusive of any value added tax, use tax, sales tax or similar tax. You shall be entitled to withhold from payments any applicable withholding taxes and comply with all applicable tax and employment legislation. Each party shall pay all taxes (including, but not limited to, taxes based upon its income) or levies imposed on it under applicable laws, regulations and tax treaties as a result of this Agreement and any payments made hereunder (including those required to be withheld or deducted from payments). Each party shall furnish evidence of such paid taxes as is sufficient to enable the other party to obtain any credits available to it, including original withholding tax certificates.
54
-
55
- 11. MISCELLANEOUS
56
-
57
- The license granted herein applies only to the version of the Software available when purchased in connection with the terms of this License Agreement. Any previous or subsequent license granted to You for use of the Software shall be governed by the terms and conditions of the agreement entered in connection with purchase of that version of the Software. You agree that you will comply with all applicable laws and regulations with respect to the Software, including without limitation all export and re-export control laws and regulations.
58
-
59
- While redistributing the Software or Modifications thereof, You may choose to offer acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License Agreement. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on our behalf. You agree to indemnify, defend, and hold Us harmless from and against any liability incurred by, or claims asserted against, Us (i) by reason of Your accepting any such support, warranty, indemnity or additional liability; or (ii) arising out of the use, reproduction or distribution of Your Application, except to the extent such claim is solely based on the inclusion of the Software therein.
60
-
61
- You agree to be identified as a customer of ours and You agree that We may refer to You by name, trade name and trademark, if applicable, and may briefly describe Your business in our marketing materials and web site.
62
-
63
- You may not assign this License Agreement without Our prior written consent, which will not be unreasonably withheld. This License Agreement will inure to the benefit of Our successors and assigns.
64
-
65
- You acknowledge that this License Agreement is complete and is the exclusive representation of our agreement. No oral or written information given by Us or on our behalf shall create a warranty or collateral contract, or in any way increase the scope of this License Agreement in any way, and You may not rely on any such oral or written information. No term or condition contained in any purchase order shall apply unless expressly accepted by Us in writing,
66
-
67
- There are no implied licenses or other implied rights granted under this License Agreement, and all rights, save for those expressly granted hereunder, shall remain with Us and our licensors. In addition, no licenses or immunities are granted to the combination of the Software and/or Modifications, as applicable, with any other software or hardware not delivered by Us to You under this License Agreement.
68
-
69
- If any provision in this License Agreement shall be determined to be invalid, such provision shall be deemed omitted; the remainder of this License Agreement shall continue in full force and effect. If any remedy provided is determined to have failed for its essential purpose, all limitations of liability and exclusions of damages set forth in this License Agreement shall remain in effect.
70
-
71
- This License Agreement may be modified only by a written instrument signed by an authorized representative of each party.
72
-
73
- This License Agreement is governed by the law of the State of Oregon, United States (notwithstanding conflicts of laws provisions), and all parties irrevocably submit to the jurisdiction of the courts of the State of Oregon and further agree to commence any litigation which may arise hereunder in the state or federal courts located in the judicial district of Multnomah County, Oregon, US.
74
-
75
- If the Software or any related documentation is licensed to the U.S. government or any agency thereof, it will be deemed to be “commercial computer software” or “commercial computer software documentation,” pursuant to DFAR Section 227.7202 and FAR Section 12.212. Any use of the Software or related documentation by the U.S. government will be governed solely by the terms of this License Agreement.
data/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- source 'http://rubygems.org'
2
- gemspec
3
-
4
- gem 'slim'
5
- gem 'sprockets'
6
- gem 'sass'
7
-
8
- group :test do
9
- gem 'simplecov', :require => false
10
- end
data/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) Mike Perham
2
-
3
- You may choose to license Sidekiq in one of two ways:
4
-
5
- - Open Source under the GPLv3
6
-
7
- Please see <http://www.gnu.org/licenses/gpl-3.0.html> for license text.
8
-
9
- - Commercial License
10
-
11
- The Sencha commercial software license in COMM-LICENSE. You must pledge
12
- $50 to my Pledgie fund at http://www.pledgie.com/campaigns/16623 to use
13
- this license.
14
-
15
- The commercial license is just meant to help support my OSS work. If
16
- you do buy the commercial licensing option, thank you for your support!
17
-
18
- The commercial license is meant to be per-site. Consulting shops must buy
19
- one license per client engagement which uses Sidekiq. For instance,
20
- GitHub could license Sidekiq for $50 for their own internal use but they
21
- must pay $50 per GitHub::FI install because FI is a separate installation
22
- from the GitHub website managed by the FI customer.
data/Rakefile DELETED
@@ -1,9 +0,0 @@
1
- require 'rake/testtask'
2
- Rake::TestTask.new(:test) do |test|
3
- test.libs << 'test'
4
- #SO MUCH NOISE
5
- #test.warning = true
6
- test.pattern = 'test/**/test_*.rb'
7
- end
8
-
9
- task :default => :test
data/TODO.md DELETED
@@ -1 +0,0 @@
1
- - Make the Web UI less ugly
data/bin/client DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'sidekiq'
4
-
5
- 10.times do
6
- Sidekiq::Client.push('class' => 'HardWorker', 'args' => ['bob', 1])
7
- end