sidekiq 2.13.1 → 2.14.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.
- data/Changes.md +12 -1
- data/Contributing.md +3 -0
- data/Gemfile +1 -16
- data/Pro-Changes.md +18 -0
- data/lib/sidekiq/api.rb +2 -2
- data/lib/sidekiq/cli.rb +7 -4
- data/lib/sidekiq/client.rb +1 -1
- data/lib/sidekiq/exception_handler.rb +14 -14
- data/lib/sidekiq/middleware/server/retry_jobs.rb +1 -1
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/web.rb +31 -24
- data/sidekiq.gemspec +1 -2
- data/web/views/_job_info.erb +76 -0
- data/web/views/_nav.erb +23 -0
- data/web/views/_paging.erb +25 -0
- data/web/views/_status.erb +4 -0
- data/web/views/_summary.erb +26 -0
- data/web/views/_workers.erb +29 -0
- data/web/views/dashboard.erb +59 -0
- data/web/views/index.erb +16 -0
- data/web/views/layout.erb +73 -0
- data/web/views/queue.erb +38 -0
- data/web/views/queues.erb +22 -0
- data/web/views/retries.erb +57 -0
- data/web/views/retry.erb +30 -0
- data/web/views/scheduled.erb +48 -0
- data/web/views/scheduled_job_info.erb +7 -0
- metadata +19 -35
- data/web/views/_job_info.slim +0 -51
- data/web/views/_nav.slim +0 -16
- data/web/views/_paging.slim +0 -15
- data/web/views/_status.slim +0 -3
- data/web/views/_summary.slim +0 -19
- data/web/views/_workers.slim +0 -21
- data/web/views/dashboard.slim +0 -46
- data/web/views/index.slim +0 -10
- data/web/views/layout.slim +0 -50
- data/web/views/queue.slim +0 -27
- data/web/views/queues.slim +0 -15
- data/web/views/retries.slim +0 -41
- data/web/views/retry.slim +0 -21
- data/web/views/scheduled.slim +0 -33
- data/web/views/scheduled_job_info.slim +0 -6
data/web/views/queues.slim
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
h3 = t('Queues')
|
2
|
-
|
3
|
-
table class="queues table table-hover table-bordered table-striped table-white"
|
4
|
-
thead
|
5
|
-
th = t('Queue')
|
6
|
-
th = t('Size')
|
7
|
-
th = t('Actions')
|
8
|
-
- @queues.each do |queue|
|
9
|
-
tr
|
10
|
-
td
|
11
|
-
a href="#{root_path}queues/#{queue.name}" #{queue.name}
|
12
|
-
td= number_with_delimiter(queue.size)
|
13
|
-
td width="20%"
|
14
|
-
form action="#{root_path}queues/#{queue.name}" method="post"
|
15
|
-
input.btn.btn-danger.btn-small type="submit" name="delete" value="#{t('Delete')}" data-confirm="#{t('AreYouSureDeleteQueue', :queue => queue.name)}"
|
data/web/views/retries.slim
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
header.row
|
2
|
-
.span5
|
3
|
-
h3 = t('Retries')
|
4
|
-
.span4
|
5
|
-
- if @retries.size > 0
|
6
|
-
== slim :_paging, :locals => { :url => "#{root_path}retries" }
|
7
|
-
|
8
|
-
- if @retries.size > 0
|
9
|
-
|
10
|
-
form action="#{root_path}retries" method="post"
|
11
|
-
table class="table table-striped table-bordered table-white"
|
12
|
-
tr
|
13
|
-
th width="20px"
|
14
|
-
input type="checkbox" class="check_all"
|
15
|
-
th width="25%" = t('NextRetry')
|
16
|
-
th width="11%" = t('RetryCount')
|
17
|
-
th = t('Queue')
|
18
|
-
th = t('Worker')
|
19
|
-
th = t('Arguments')
|
20
|
-
- @retries.each do |msg, score|
|
21
|
-
tr
|
22
|
-
td
|
23
|
-
input type='checkbox' name='key[]' value='#{job_params(msg, score)}'
|
24
|
-
td
|
25
|
-
a href="#{root_path}retries/#{job_params(msg, score)}"== relative_time(Time.at(score))
|
26
|
-
td= msg['retry_count']
|
27
|
-
td
|
28
|
-
a href="#{root_path}queues/#{msg['queue']}" #{msg['queue']}
|
29
|
-
td= msg['class']
|
30
|
-
td
|
31
|
-
div.args=display_args(msg['args'])
|
32
|
-
input.btn.btn-primary.btn-small.pull-left type="submit" name="retry" value="#{t('RetryNow')}"
|
33
|
-
input.btn.btn-danger.btn-small.pull-left type="submit" name="delete" value="#{t('Delete')}"
|
34
|
-
|
35
|
-
form action="#{root_path}retries/all/delete" method="post"
|
36
|
-
input.btn.btn-danger.btn-small.pull-right type="submit" name="delete" value="#{t('DeleteAll')}" data-confirm="#{t('AreYouSure')}"
|
37
|
-
form action="#{root_path}retries/all/retry" method="post"
|
38
|
-
input.btn.btn-danger.btn-small.pull-right type="submit" name="retry" value="#{t('RetryAll')}" data-confirm="#{t('AreYouSure')}"
|
39
|
-
|
40
|
-
- else
|
41
|
-
.alert.alert-success = t('NoRetriesFound')
|
data/web/views/retry.slim
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
== slim :_job_info, :locals => {:job => @retry, :type => :retry}
|
2
|
-
|
3
|
-
h3 = t('Error')
|
4
|
-
table class="error table table-bordered table-striped"
|
5
|
-
tbody
|
6
|
-
tr
|
7
|
-
th = t('ErrorClass')
|
8
|
-
td
|
9
|
-
code= @retry['error_class']
|
10
|
-
tr
|
11
|
-
th = t('ErrorMessage')
|
12
|
-
td= @retry['error_message']
|
13
|
-
- if !@retry['error_backtrace'].nil?
|
14
|
-
tr
|
15
|
-
th = t('ErrorBacktrace')
|
16
|
-
td
|
17
|
-
code== @retry['error_backtrace'].join("<br/>")
|
18
|
-
form.form-horizontal action="#{root_path}retries/#{job_params(@retry, @retry.score)}" method="post"
|
19
|
-
a.btn href="#{root_path}retries" = t('GoBack')
|
20
|
-
input.btn.btn-primary type="submit" name="retry" value="#{t('RetryNow')}"
|
21
|
-
input.btn.btn-danger type="submit" name="delete" value="#{t('Delete')}"
|
data/web/views/scheduled.slim
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
header.row
|
2
|
-
.span5
|
3
|
-
h3 = t('ScheduledJobs')
|
4
|
-
.span4
|
5
|
-
- if @scheduled.size > 0
|
6
|
-
== slim :_paging, :locals => { :url => "#{root_path}scheduled" }
|
7
|
-
|
8
|
-
- if @scheduled.size > 0
|
9
|
-
|
10
|
-
form action="#{root_path}scheduled" method="post"
|
11
|
-
table class="table table-striped table-bordered table-white"
|
12
|
-
thead
|
13
|
-
th width="20px"
|
14
|
-
input type="checkbox" class="check_all"
|
15
|
-
th width="25%" = t('When')
|
16
|
-
th width="10%" = t('Queue')
|
17
|
-
th = t('Worker')
|
18
|
-
th = t('Arguments')
|
19
|
-
- @scheduled.each do |msg, score|
|
20
|
-
tr
|
21
|
-
td
|
22
|
-
input type='checkbox' name='key[]' value='#{job_params(msg, score)}'
|
23
|
-
td
|
24
|
-
a href="#{root_path}scheduled/#{job_params(msg, score)}"== relative_time(Time.at(score))
|
25
|
-
td
|
26
|
-
a href="#{root_path}queues/#{msg['queue']}" #{msg['queue']}
|
27
|
-
td= msg['class']
|
28
|
-
td
|
29
|
-
div.args=display_args(msg['args'])
|
30
|
-
input.btn.btn-danger.pull-right type="submit" name="delete" value="#{t('Delete')}"
|
31
|
-
input.btn.btn-danger.pull-right type="submit" name="add_to_queue" value="#{t('AddToQueue')}"
|
32
|
-
- else
|
33
|
-
.alert.alert-success = t('NoScheduledFound')
|
@@ -1,6 +0,0 @@
|
|
1
|
-
== slim :_job_info, :locals => {:job => @job, :type => :scheduled}
|
2
|
-
|
3
|
-
form.form-horizontal action="#{root_path}scheduled/#{job_params(@job, @job.score)}" method="post"
|
4
|
-
a.btn href="#{root_path}scheduled" = t('GoBack')
|
5
|
-
input.btn.btn-primary type="submit" name="add_to_queue" value="#{t('AddToQueue')}"
|
6
|
-
input.btn.btn-danger type="submit" name="delete" value="#{t('Delete')}"
|