batches_task_processor 0.3.5 → 0.3.6

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: 69f248153b65e49d24ebbebaa064cb3f5e03aec503cb2d2b9add636c96e8aad4
4
- data.tar.gz: d020b38e7e8fea12d7a7df841ca976881ab86b7dee326f3befd4ccc94d205033
3
+ metadata.gz: 1c894648bfdda3e00af8f84664db6b9bc93c9841b75db626b1b7246a5bd122f7
4
+ data.tar.gz: 40730cbc8b5009f5889c823fb7f62ce9fad74667c1a995bdeb9640bc2423cbd3
5
5
  SHA512:
6
- metadata.gz: 0bfdfae31beed3d6bb7ea8c3004f842bd5936a94d9f188ebfaeb573c44f38207aeef2ea343bc9db848ce66c50e1ff27d9da4c5a261f98b783c95551e7a3f7059
7
- data.tar.gz: 4219b4010280239086ee4a9dabe50876a495f599f2d4450227cd8c8dac105ae9e798aa7e2348838b52b8e9c7f78a61aded822e334f9674cca5c1edb92cd8784a
6
+ metadata.gz: f470bd0a5de883797fff0cde140f87ab9b61142a148945dad289b47769ed51b213ead81f72c8998cdb7b928b0937a34b892050618c4cf7a175a42afa559049bb
7
+ data.tar.gz: 9fc74754e669dbba709ab01b156b6e2bba1fa59c2edfb989438791a1f2ec11ca4f1a04ab90a36025051ed281a697810f4b7b47bbc59505d5682df86341bc815e
@@ -83,7 +83,8 @@ module BatchesTaskProcessor
83
83
  end
84
84
 
85
85
  def process_cancelled?
86
- task_model.state == 'cancelled'
86
+ state = BatchesTaskProcessor::Model.select(:state).find(task_model.id).state
87
+ state == 'cancelled'
87
88
  end
88
89
 
89
90
  def log(msg)
@@ -1,3 +1,3 @@
1
1
  module BatchesTaskProcessor
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batches_task_processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2022-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails