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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 949153219659c19f98869b298ea0b4ec9e549755e43eb2619832ec79aeeeb9c0
4
- data.tar.gz: c2fd7f5004b1ff880f416ad7a8b0a0ca632777c0c126276fd14b39db3a7f64f9
3
+ metadata.gz: cc93ea9aa2da95d53cb020fddedded8cb3c7b142acd7486dfbd3c02df6359629
4
+ data.tar.gz: 97bebc3bf997c25394383cb9809d6d272e4232dbe6175a7dd4f3f33912e471c8
5
5
  SHA512:
6
- metadata.gz: bab2ab1ff1bd5f93f26a7bbef69941e365818b110c81344d74db2c55e46bc4e11830a969f7ce0fd0dfce32f746abe6e65fb7ad314f4c8757ac5af8f8bd411004
7
- data.tar.gz: cf87d8a77788493e25d65378615f30e93ad7475b7389061be0bb32ba2ea643c54d8a1db3959422fc39a6ea02cc71fa688e6c18ea429553912f4410215f786a74
6
+ metadata.gz: 616b2ebb11c1e98207fa3ff808db098eb85d0939463b244f3b06ea67980a1adc3c6673382033bdfc727280c34ed752981b8b8d6746735ec46ec5b4d1e9c07c4c
7
+ data.tar.gz: 583d2f978de033d27223548032c7f39ad89a858fb418d17102474e1404a1895437d508c7c1762dbe6b56a4bdba1ea30afca74145d1c865ba68888034d5b0ff23
@@ -98,6 +98,7 @@ class Barbeque::JobDefinitionsController < Barbeque::ApplicationController
98
98
  :app_id,
99
99
  :description,
100
100
  slack_notification_attributes: slack_notification_params,
101
+ retry_config_attributes: retry_config_params,
101
102
  )
102
103
  end
103
104
  end
@@ -100,12 +100,12 @@
100
100
  Retry
101
101
  .row
102
102
  .col-xs-4
103
- = link_to url_for(request.query_parameters.merge(page: @job_executions.prev_page)),
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 url_for(request.query_parameters.merge(page: @job_executions.next_page)),
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
@@ -47,7 +47,8 @@
47
47
  %th Message
48
48
  %td
49
49
  - if @log
50
- %code= @log['message']
50
+ %pre
51
+ %code= @log['message']
51
52
  - else
52
53
  Log was not found.
53
54
  .col-sm-5
@@ -45,7 +45,8 @@
45
45
  %th Message
46
46
  %td
47
47
  - if @execution_log
48
- %code= @execution_log['message']
48
+ %pre
49
+ %code= @execution_log['message']
49
50
  - else
50
51
  Execution log was not found.
51
52
 
@@ -0,0 +1,9 @@
1
+ class ChangeJobNameToCaseSensitive < ActiveRecord::Migration[5.2]
2
+ def up
3
+ change_column :barbeque_job_definitions, :job, :string, collation: 'utf8mb4_bin'
4
+ end
5
+
6
+ def down
7
+ change_column :barbeque_job_definitions, :job, :string, collation: nil
8
+ end
9
+ end
@@ -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
@@ -43,7 +43,7 @@ module Barbeque
43
43
  end
44
44
 
45
45
  loop do
46
- current_num = @job_queue.job_executions.where(status: [:running, :retried]).count
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
@@ -1,3 +1,3 @@
1
1
  module Barbeque
2
- VERSION = '2.7.0'
2
+ VERSION = '2.7.5'
3
3
  end
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.0
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: 2019-03-18 00:00:00.000000000 Z
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: '0'
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: '0'
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