barbeque 0.6.2 → 0.6.3

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
  SHA1:
3
- metadata.gz: 5f31d451fae8c708db167694d5056422972a6a6b
4
- data.tar.gz: 84b5367270eb98ff34d3af2d93ddff3d0f1eac6d
3
+ metadata.gz: c926b3660782c169804dc6f07c16757ed051c9df
4
+ data.tar.gz: fc2df2f86cb3c6cf4192ce810a47024b8483fb06
5
5
  SHA512:
6
- metadata.gz: d3e96daee8fa312b3d5b3ae5a7bd64c03996379a0eb3e2e4630d1779f704d10a99882ece0e9679b1c5e6278f5e1f096ac5f32bde94a6b7d2571b2984e0a8d74b
7
- data.tar.gz: 415f9fedaeeece99335641121ad05bea05e80336dc0c231084a3f25369a8a60f73e034b89f0eacb010a5038da2dc3caa9377e64a3a61c5612cc3d7b189682c75
6
+ metadata.gz: 50f25fbd8525e4ce581cf92212565170ce1256666be8e917a9dc114fe8bfe0e499e20add7da02cb5647acafa924fac744cd78df85dade310cb9f745bb644efc1
7
+ data.tar.gz: d4389a130d4e0939bacdafdeec7e623851a6ea01414bdc19fef82cf29a46f64d8201a2ee1328157885235fd4534421242f90d6f2bfdb591b6f6c0b73db715180
@@ -12,6 +12,8 @@ module Barbeque::JobExecutionsHelper
12
12
  'info'
13
13
  when 'error'
14
14
  'danger'
15
+ when 'running'
16
+ 'info'
15
17
  else
16
18
  'default'
17
19
  end
@@ -11,6 +11,7 @@ class Barbeque::JobExecution < Barbeque::ApplicationRecord
11
11
  failed: 2,
12
12
  retried: 3,
13
13
  error: 4,
14
+ running: 5,
14
15
  }
15
16
 
16
17
  paginates_per 15
@@ -10,6 +10,7 @@ class Barbeque::JobRetry < Barbeque::ApplicationRecord
10
10
  failed: 2,
11
11
  retried: 3,
12
12
  error: 4,
13
+ running: 5,
13
14
  }
14
15
 
15
16
  # @return [Hash] - A hash created by `JobExecutor::Retry#log_result`
@@ -19,6 +19,7 @@ module Barbeque
19
19
  rescue ActiveRecord::RecordNotUnique => e
20
20
  raise DuplicatedExecution.new(e.message)
21
21
  end
22
+ job_execution.update!(status: :running)
22
23
 
23
24
  begin
24
25
  stdout, stderr, status = run_command
@@ -21,7 +21,8 @@ module Barbeque
21
21
  rescue ActiveRecord::RecordNotUnique => e
22
22
  raise DuplicatedExecution.new(e.message)
23
23
  end
24
- job_execution.update!(status: 'retried')
24
+ job_execution.update!(status: :retried)
25
+ job_retry.update!(status: :running)
25
26
 
26
27
  begin
27
28
  stdout, stderr, result = run_command
@@ -1,3 +1,3 @@
1
1
  module Barbeque
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
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: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-06 00:00:00.000000000 Z
11
+ date: 2017-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: adminlte2-rails