cloudtasker 0.13.1 → 0.13.2

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: acd6db925df54f7f8b10459c94e76fbd4f4316b706bf7918afaac9857161335d
4
- data.tar.gz: 690a9de1bc62150eb9d6e76dc8689c28a7811996dd036edb3351dce88ee2e082
3
+ metadata.gz: 2f26efb724bb305aed27041f6e2edbd8ffe82d4b07db39d3e4bf602415a4b7ef
4
+ data.tar.gz: 117ea1a8772a4a6512b1198a9429122dad98f379b82d49a6daf926323dc31987
5
5
  SHA512:
6
- metadata.gz: fc66650e5d56d77fe026acbe01dd74eaf44526d2218849731cfc8dae65b8bb932016940370b2e478904f45d23197b222c400f788ee9b368a4493746f1a14cb38
7
- data.tar.gz: 4385ec200c8d5a2b6a1e7fdf9b700a294184894ab4d1c97f83d31a0c7adf636cb02694f1b85394f030e54fff66a0a78de1b01a4ebbb8dd1bf041c708ca64137e
6
+ metadata.gz: 6ce293af0e108913d4f7161ed9a714e4a76bdb7b6078982d00e17d543be1acc826566f7af15652ccec17f4ca2a7420af4651ea78e8ee028159d3e39fab2029a3
7
+ data.tar.gz: 66c6bf2443ac5dcd61939eb0cf22a6e0ee87258a2cb2997b8f3905471bdce99eaf0dfd560968e8ba7f61d2220b62ac42f68e25f97eba808e141c0985f64be6e2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.13.2](https://github.com/keypup-io/cloudtasker/tree/v0.13.2) (2023-07-02)
4
+
5
+ [Full Changelog](https://github.com/keypup-io/cloudtasker/compare/v0.13.1...v0.13.2)
6
+
7
+ **Fixed bugs:**
8
+ - Fix concurrency issue when draining test jobs in `fake!` mode
9
+
3
10
  ## [v0.13.1](https://github.com/keypup-io/cloudtasker/tree/v0.13.1) (2023-06-19)
4
11
 
5
12
  [Full Changelog](https://github.com/keypup-io/cloudtasker/compare/v0.13.0...v0.13.1)
@@ -47,9 +47,13 @@ module Cloudtasker
47
47
  # @return [Array<Cloudtasker::Backend::MemoryTask>] All the tasks
48
48
  #
49
49
  def self.all(worker_class_name = nil)
50
- list = queue
51
- list = list.select { |e| e.worker_class_name == worker_class_name } if worker_class_name
52
- list
50
+ # Always return a copy of the queue so that tasks can safely be removed
51
+ # (via #execute) without tampering with the enumerator
52
+ if worker_class_name
53
+ queue.select { |e| e.worker_class_name == worker_class_name }
54
+ else
55
+ queue.dup
56
+ end
53
57
  end
54
58
 
55
59
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cloudtasker
4
- VERSION = '0.13.1'
4
+ VERSION = '0.13.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudtasker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport