sidekiq 6.1.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 (127) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +71 -0
  3. data/.github/contributing.md +32 -0
  4. data/.github/issue_template.md +11 -0
  5. data/.gitignore +13 -0
  6. data/.standard.yml +20 -0
  7. data/3.0-Upgrade.md +70 -0
  8. data/4.0-Upgrade.md +53 -0
  9. data/5.0-Upgrade.md +56 -0
  10. data/6.0-Upgrade.md +72 -0
  11. data/COMM-LICENSE +97 -0
  12. data/Changes.md +1718 -0
  13. data/Ent-2.0-Upgrade.md +37 -0
  14. data/Ent-Changes.md +269 -0
  15. data/Gemfile +24 -0
  16. data/Gemfile.lock +208 -0
  17. data/LICENSE +9 -0
  18. data/Pro-2.0-Upgrade.md +138 -0
  19. data/Pro-3.0-Upgrade.md +44 -0
  20. data/Pro-4.0-Upgrade.md +35 -0
  21. data/Pro-5.0-Upgrade.md +25 -0
  22. data/Pro-Changes.md +790 -0
  23. data/README.md +94 -0
  24. data/Rakefile +10 -0
  25. data/bin/sidekiq +42 -0
  26. data/bin/sidekiqload +157 -0
  27. data/bin/sidekiqmon +8 -0
  28. data/code_of_conduct.md +50 -0
  29. data/lib/generators/sidekiq/templates/worker.rb.erb +9 -0
  30. data/lib/generators/sidekiq/templates/worker_spec.rb.erb +6 -0
  31. data/lib/generators/sidekiq/templates/worker_test.rb.erb +8 -0
  32. data/lib/generators/sidekiq/worker_generator.rb +57 -0
  33. data/lib/sidekiq.rb +262 -0
  34. data/lib/sidekiq/api.rb +960 -0
  35. data/lib/sidekiq/cli.rb +401 -0
  36. data/lib/sidekiq/client.rb +263 -0
  37. data/lib/sidekiq/delay.rb +41 -0
  38. data/lib/sidekiq/exception_handler.rb +27 -0
  39. data/lib/sidekiq/extensions/action_mailer.rb +47 -0
  40. data/lib/sidekiq/extensions/active_record.rb +43 -0
  41. data/lib/sidekiq/extensions/class_methods.rb +43 -0
  42. data/lib/sidekiq/extensions/generic_proxy.rb +31 -0
  43. data/lib/sidekiq/fetch.rb +82 -0
  44. data/lib/sidekiq/job_logger.rb +63 -0
  45. data/lib/sidekiq/job_retry.rb +262 -0
  46. data/lib/sidekiq/launcher.rb +206 -0
  47. data/lib/sidekiq/logger.rb +165 -0
  48. data/lib/sidekiq/manager.rb +135 -0
  49. data/lib/sidekiq/middleware/chain.rb +160 -0
  50. data/lib/sidekiq/middleware/i18n.rb +40 -0
  51. data/lib/sidekiq/monitor.rb +133 -0
  52. data/lib/sidekiq/paginator.rb +47 -0
  53. data/lib/sidekiq/processor.rb +280 -0
  54. data/lib/sidekiq/rails.rb +50 -0
  55. data/lib/sidekiq/redis_connection.rb +146 -0
  56. data/lib/sidekiq/scheduled.rb +173 -0
  57. data/lib/sidekiq/sd_notify.rb +149 -0
  58. data/lib/sidekiq/systemd.rb +24 -0
  59. data/lib/sidekiq/testing.rb +344 -0
  60. data/lib/sidekiq/testing/inline.rb +30 -0
  61. data/lib/sidekiq/util.rb +67 -0
  62. data/lib/sidekiq/version.rb +5 -0
  63. data/lib/sidekiq/web.rb +213 -0
  64. data/lib/sidekiq/web/action.rb +93 -0
  65. data/lib/sidekiq/web/application.rb +357 -0
  66. data/lib/sidekiq/web/csrf_protection.rb +153 -0
  67. data/lib/sidekiq/web/helpers.rb +333 -0
  68. data/lib/sidekiq/web/router.rb +101 -0
  69. data/lib/sidekiq/worker.rb +244 -0
  70. data/sidekiq.gemspec +20 -0
  71. data/web/assets/images/favicon.ico +0 -0
  72. data/web/assets/images/logo.png +0 -0
  73. data/web/assets/images/status.png +0 -0
  74. data/web/assets/javascripts/application.js +95 -0
  75. data/web/assets/javascripts/dashboard.js +296 -0
  76. data/web/assets/stylesheets/application-dark.css +133 -0
  77. data/web/assets/stylesheets/application-rtl.css +246 -0
  78. data/web/assets/stylesheets/application.css +1158 -0
  79. data/web/assets/stylesheets/bootstrap-rtl.min.css +9 -0
  80. data/web/assets/stylesheets/bootstrap.css +5 -0
  81. data/web/locales/ar.yml +81 -0
  82. data/web/locales/cs.yml +78 -0
  83. data/web/locales/da.yml +68 -0
  84. data/web/locales/de.yml +81 -0
  85. data/web/locales/el.yml +68 -0
  86. data/web/locales/en.yml +83 -0
  87. data/web/locales/es.yml +70 -0
  88. data/web/locales/fa.yml +80 -0
  89. data/web/locales/fr.yml +78 -0
  90. data/web/locales/he.yml +79 -0
  91. data/web/locales/hi.yml +75 -0
  92. data/web/locales/it.yml +69 -0
  93. data/web/locales/ja.yml +83 -0
  94. data/web/locales/ko.yml +68 -0
  95. data/web/locales/lt.yml +83 -0
  96. data/web/locales/nb.yml +77 -0
  97. data/web/locales/nl.yml +68 -0
  98. data/web/locales/pl.yml +59 -0
  99. data/web/locales/pt-br.yml +68 -0
  100. data/web/locales/pt.yml +67 -0
  101. data/web/locales/ru.yml +78 -0
  102. data/web/locales/sv.yml +68 -0
  103. data/web/locales/ta.yml +75 -0
  104. data/web/locales/uk.yml +76 -0
  105. data/web/locales/ur.yml +80 -0
  106. data/web/locales/vi.yml +83 -0
  107. data/web/locales/zh-cn.yml +68 -0
  108. data/web/locales/zh-tw.yml +68 -0
  109. data/web/views/_footer.erb +20 -0
  110. data/web/views/_job_info.erb +89 -0
  111. data/web/views/_nav.erb +52 -0
  112. data/web/views/_paging.erb +23 -0
  113. data/web/views/_poll_link.erb +7 -0
  114. data/web/views/_status.erb +4 -0
  115. data/web/views/_summary.erb +40 -0
  116. data/web/views/busy.erb +101 -0
  117. data/web/views/dashboard.erb +75 -0
  118. data/web/views/dead.erb +34 -0
  119. data/web/views/layout.erb +41 -0
  120. data/web/views/morgue.erb +78 -0
  121. data/web/views/queue.erb +55 -0
  122. data/web/views/queues.erb +38 -0
  123. data/web/views/retries.erb +83 -0
  124. data/web/views/retry.erb +34 -0
  125. data/web/views/scheduled.erb +57 -0
  126. data/web/views/scheduled_job_info.erb +8 -0
  127. metadata +212 -0
@@ -0,0 +1,34 @@
1
+ <%= erb :_job_info, locals: { job: @retry, type: :retry } %>
2
+
3
+ <h3><%= t('Error') %></h3>
4
+ <div class="table_container">
5
+ <table class="error table table-bordered table-striped">
6
+ <tbody>
7
+ <tr>
8
+ <th><%= t('ErrorClass') %></th>
9
+ <td>
10
+ <code><%= h @retry['error_class'] %></code>
11
+ </td>
12
+ </tr>
13
+ <tr>
14
+ <th><%= t('ErrorMessage') %></th>
15
+ <td><%= h(@retry['error_message']) %></td>
16
+ </tr>
17
+ <% if @retry.error_backtrace %>
18
+ <tr>
19
+ <th><%= t('ErrorBacktrace') %></th>
20
+ <td>
21
+ <code><%= @retry.error_backtrace.join("<br/>") %></code>
22
+ </td>
23
+ </tr>
24
+ <% end %>
25
+ </tbody>
26
+ </table>
27
+ </div>
28
+
29
+ <form class="form-horizontal" action="<%= root_path %>retries/<%= job_params(@retry, @retry.score) %>" method="post">
30
+ <%= csrf_tag %>
31
+ <a class="btn btn-default" href="<%= root_path %>retries"><%= t('GoBack') %></a>
32
+ <input class="btn btn-primary" type="submit" name="retry" value="<%= t('RetryNow') %>" />
33
+ <input class="btn btn-danger" type="submit" name="delete" value="<%= t('Delete') %>" />
34
+ </form>
@@ -0,0 +1,57 @@
1
+ <header class="row">
2
+ <div class="col-sm-5">
3
+ <h3><%= t('ScheduledJobs') %></h3>
4
+ </div>
5
+ <% if @scheduled.size > 0 && @total_size > @count %>
6
+ <div class="col-sm-4">
7
+ <%= erb :_paging, locals: { url: "#{root_path}scheduled" } %>
8
+ </div>
9
+ <% end %>
10
+ <%= filtering('scheduled') %>
11
+ </header>
12
+
13
+ <% if @scheduled.size > 0 %>
14
+
15
+ <form action="<%= root_path %>scheduled" method="post">
16
+ <%= csrf_tag %>
17
+ <div class="table_container">
18
+ <table class="table table-striped table-bordered table-white">
19
+ <thead>
20
+ <tr>
21
+ <th class="checkbox-column">
22
+ <input type="checkbox" class="check_all" />
23
+ </th>
24
+ <th><%= t('When') %></th>
25
+ <th><%= t('Queue') %></th>
26
+ <th><%= t('Job') %></th>
27
+ <th><%= t('Arguments') %></th>
28
+ </tr>
29
+ </thead>
30
+ <% @scheduled.each do |entry| %>
31
+ <tr>
32
+ <td>
33
+ <input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' />
34
+ </td>
35
+ <td>
36
+ <a href="<%= root_path %>scheduled/<%= job_params(entry.item, entry.score) %>"><%= relative_time(entry.at) %></a>
37
+ </td>
38
+ <td>
39
+ <a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
40
+ </td>
41
+ <td>
42
+ <%= entry.display_class %>
43
+ <%= display_tags(entry, "scheduled") %>
44
+ </td>
45
+ <td>
46
+ <div class="args"><%= display_args(entry.display_args) %></div>
47
+ </td>
48
+ </tr>
49
+ <% end %>
50
+ </table>
51
+ </div>
52
+ <input class="btn btn-danger pull-right flip" type="submit" name="delete" value="<%= t('Delete') %>" />
53
+ <input class="btn btn-danger pull-right flip" type="submit" name="add_to_queue" value="<%= t('AddToQueue') %>" />
54
+ </form>
55
+ <% else %>
56
+ <div class="alert alert-success"><%= t('NoScheduledFound') %></div>
57
+ <% end %>
@@ -0,0 +1,8 @@
1
+ <%= erb :_job_info, locals: { job: @job, type: :scheduled } %>
2
+
3
+ <form class="form-horizontal" action="<%= root_path %>scheduled/<%= job_params(@job, @job.score) %>" method="post">
4
+ <%= csrf_tag %>
5
+ <a class="btn btn-default" href="<%= root_path %>scheduled"><%= t('GoBack') %></a>
6
+ <input class="btn btn-primary" type="submit" name="add_to_queue" value="<%= t('AddToQueue') %>" />
7
+ <input class="btn btn-danger" type="submit" name="delete" value="<%= t('Delete') %>" />
8
+ </form>
metadata ADDED
@@ -0,0 +1,212 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sidekiq
3
+ version: !ruby/object:Gem::Version
4
+ version: 6.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Mike Perham
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-06-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: redis
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: connection_pool
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.2.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.2.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: rack
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ description: Simple, efficient background processing for Ruby.
56
+ email:
57
+ - mperham@gmail.com
58
+ executables:
59
+ - sidekiq
60
+ - sidekiqmon
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".circleci/config.yml"
65
+ - ".github/contributing.md"
66
+ - ".github/issue_template.md"
67
+ - ".gitignore"
68
+ - ".standard.yml"
69
+ - 3.0-Upgrade.md
70
+ - 4.0-Upgrade.md
71
+ - 5.0-Upgrade.md
72
+ - 6.0-Upgrade.md
73
+ - COMM-LICENSE
74
+ - Changes.md
75
+ - Ent-2.0-Upgrade.md
76
+ - Ent-Changes.md
77
+ - Gemfile
78
+ - Gemfile.lock
79
+ - LICENSE
80
+ - Pro-2.0-Upgrade.md
81
+ - Pro-3.0-Upgrade.md
82
+ - Pro-4.0-Upgrade.md
83
+ - Pro-5.0-Upgrade.md
84
+ - Pro-Changes.md
85
+ - README.md
86
+ - Rakefile
87
+ - bin/sidekiq
88
+ - bin/sidekiqload
89
+ - bin/sidekiqmon
90
+ - code_of_conduct.md
91
+ - lib/generators/sidekiq/templates/worker.rb.erb
92
+ - lib/generators/sidekiq/templates/worker_spec.rb.erb
93
+ - lib/generators/sidekiq/templates/worker_test.rb.erb
94
+ - lib/generators/sidekiq/worker_generator.rb
95
+ - lib/sidekiq.rb
96
+ - lib/sidekiq/api.rb
97
+ - lib/sidekiq/cli.rb
98
+ - lib/sidekiq/client.rb
99
+ - lib/sidekiq/delay.rb
100
+ - lib/sidekiq/exception_handler.rb
101
+ - lib/sidekiq/extensions/action_mailer.rb
102
+ - lib/sidekiq/extensions/active_record.rb
103
+ - lib/sidekiq/extensions/class_methods.rb
104
+ - lib/sidekiq/extensions/generic_proxy.rb
105
+ - lib/sidekiq/fetch.rb
106
+ - lib/sidekiq/job_logger.rb
107
+ - lib/sidekiq/job_retry.rb
108
+ - lib/sidekiq/launcher.rb
109
+ - lib/sidekiq/logger.rb
110
+ - lib/sidekiq/manager.rb
111
+ - lib/sidekiq/middleware/chain.rb
112
+ - lib/sidekiq/middleware/i18n.rb
113
+ - lib/sidekiq/monitor.rb
114
+ - lib/sidekiq/paginator.rb
115
+ - lib/sidekiq/processor.rb
116
+ - lib/sidekiq/rails.rb
117
+ - lib/sidekiq/redis_connection.rb
118
+ - lib/sidekiq/scheduled.rb
119
+ - lib/sidekiq/sd_notify.rb
120
+ - lib/sidekiq/systemd.rb
121
+ - lib/sidekiq/testing.rb
122
+ - lib/sidekiq/testing/inline.rb
123
+ - lib/sidekiq/util.rb
124
+ - lib/sidekiq/version.rb
125
+ - lib/sidekiq/web.rb
126
+ - lib/sidekiq/web/action.rb
127
+ - lib/sidekiq/web/application.rb
128
+ - lib/sidekiq/web/csrf_protection.rb
129
+ - lib/sidekiq/web/helpers.rb
130
+ - lib/sidekiq/web/router.rb
131
+ - lib/sidekiq/worker.rb
132
+ - sidekiq.gemspec
133
+ - web/assets/images/favicon.ico
134
+ - web/assets/images/logo.png
135
+ - web/assets/images/status.png
136
+ - web/assets/javascripts/application.js
137
+ - web/assets/javascripts/dashboard.js
138
+ - web/assets/stylesheets/application-dark.css
139
+ - web/assets/stylesheets/application-rtl.css
140
+ - web/assets/stylesheets/application.css
141
+ - web/assets/stylesheets/bootstrap-rtl.min.css
142
+ - web/assets/stylesheets/bootstrap.css
143
+ - web/locales/ar.yml
144
+ - web/locales/cs.yml
145
+ - web/locales/da.yml
146
+ - web/locales/de.yml
147
+ - web/locales/el.yml
148
+ - web/locales/en.yml
149
+ - web/locales/es.yml
150
+ - web/locales/fa.yml
151
+ - web/locales/fr.yml
152
+ - web/locales/he.yml
153
+ - web/locales/hi.yml
154
+ - web/locales/it.yml
155
+ - web/locales/ja.yml
156
+ - web/locales/ko.yml
157
+ - web/locales/lt.yml
158
+ - web/locales/nb.yml
159
+ - web/locales/nl.yml
160
+ - web/locales/pl.yml
161
+ - web/locales/pt-br.yml
162
+ - web/locales/pt.yml
163
+ - web/locales/ru.yml
164
+ - web/locales/sv.yml
165
+ - web/locales/ta.yml
166
+ - web/locales/uk.yml
167
+ - web/locales/ur.yml
168
+ - web/locales/vi.yml
169
+ - web/locales/zh-cn.yml
170
+ - web/locales/zh-tw.yml
171
+ - web/views/_footer.erb
172
+ - web/views/_job_info.erb
173
+ - web/views/_nav.erb
174
+ - web/views/_paging.erb
175
+ - web/views/_poll_link.erb
176
+ - web/views/_status.erb
177
+ - web/views/_summary.erb
178
+ - web/views/busy.erb
179
+ - web/views/dashboard.erb
180
+ - web/views/dead.erb
181
+ - web/views/layout.erb
182
+ - web/views/morgue.erb
183
+ - web/views/queue.erb
184
+ - web/views/queues.erb
185
+ - web/views/retries.erb
186
+ - web/views/retry.erb
187
+ - web/views/scheduled.erb
188
+ - web/views/scheduled_job_info.erb
189
+ homepage: http://sidekiq.org
190
+ licenses:
191
+ - LGPL-3.0
192
+ metadata: {}
193
+ post_install_message:
194
+ rdoc_options: []
195
+ require_paths:
196
+ - lib
197
+ required_ruby_version: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: 2.5.0
202
+ required_rubygems_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ requirements: []
208
+ rubygems_version: 3.1.2
209
+ signing_key:
210
+ specification_version: 4
211
+ summary: Simple, efficient background processing for Ruby
212
+ test_files: []