barbeque 2.7.0 → 2.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/barbeque/job_definitions_controller.rb +1 -0
- data/app/views/barbeque/job_definitions/show.html.haml +2 -2
- data/app/views/barbeque/job_executions/show.html.haml +2 -1
- data/app/views/barbeque/job_retries/show.html.haml +2 -1
- data/db/migrate/20191029105530_change_job_name_to_case_sensitive.rb +9 -0
- data/lib/barbeque/message_handler/job_execution.rb +3 -0
- data/lib/barbeque/runner.rb +1 -1
- data/lib/barbeque/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc93ea9aa2da95d53cb020fddedded8cb3c7b142acd7486dfbd3c02df6359629
|
4
|
+
data.tar.gz: 97bebc3bf997c25394383cb9809d6d272e4232dbe6175a7dd4f3f33912e471c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 616b2ebb11c1e98207fa3ff808db098eb85d0939463b244f3b06ea67980a1adc3c6673382033bdfc727280c34ed752981b8b8d6746735ec46ec5b4d1e9c07c4c
|
7
|
+
data.tar.gz: 583d2f978de033d27223548032c7f39ad89a858fb418d17102474e1404a1895437d508c7c1762dbe6b56a4bdba1ea30afca74145d1c865ba68888034d5b0ff23
|
@@ -100,12 +100,12 @@
|
|
100
100
|
Retry
|
101
101
|
.row
|
102
102
|
.col-xs-4
|
103
|
-
= link_to
|
103
|
+
= link_to path_to_prev_page(@job_executions),
|
104
104
|
class: "btn btn-default btn-sm btn-block #{'disabled' unless @job_executions.prev_page}" do
|
105
105
|
%i.fa.fa-angle-left
|
106
106
|
New
|
107
107
|
.col-xs-4.col-xs-offset-4
|
108
|
-
= link_to
|
108
|
+
= link_to path_to_next_page(@job_executions),
|
109
109
|
class: "btn btn-default btn-sm btn-block #{'disabled' unless @job_executions.next_page}" do
|
110
110
|
Old
|
111
111
|
%i.fa.fa-angle-right
|
@@ -52,6 +52,9 @@ module Barbeque
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
rescue ActiveRecord::RecordNotUnique => e
|
55
|
+
# There's a case where Barbeque receives message which was already received or deleted.
|
56
|
+
# https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues.html
|
57
|
+
@message_queue.delete_message(@message)
|
55
58
|
raise DuplicatedExecution.new(e.message)
|
56
59
|
end
|
57
60
|
end
|
data/lib/barbeque/runner.rb
CHANGED
@@ -43,7 +43,7 @@ module Barbeque
|
|
43
43
|
end
|
44
44
|
|
45
45
|
loop do
|
46
|
-
current_num = @job_queue.job_executions.where(status:
|
46
|
+
current_num = @job_queue.job_executions.where(status: :running).count + Barbeque::JobRetry.where(status: :running).joins(job_execution: :job_queue).merge(Barbeque::JobQueue.where(id: @job_queue.id)).count
|
47
47
|
if current_num < max_num
|
48
48
|
return
|
49
49
|
end
|
data/lib/barbeque/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barbeque
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: adminlte2-rails
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 1.2.1
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 1.2.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rails
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -425,6 +425,7 @@ files:
|
|
425
425
|
- db/migrate/20190221050714_create_barbeque_retry_configs.rb
|
426
426
|
- db/migrate/20190311034445_add_notify_failure_only_if_retry_limit_reached_to_barbeque_slack_notifications.rb
|
427
427
|
- db/migrate/20190315052951_change_barbeque_retry_configs_base_delay_default_value.rb
|
428
|
+
- db/migrate/20191029105530_change_job_name_to_case_sensitive.rb
|
428
429
|
- lib/barbeque.rb
|
429
430
|
- lib/barbeque/config.rb
|
430
431
|
- lib/barbeque/docker_image.rb
|