ductwork 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2029d11f63583fd4b5cb774bf3c249b30f933700852ea286c56ae9f6262aa584
4
- data.tar.gz: 5c32000bd3409f54af3fc43aac6296e7fad458d8ae74336b4edb84310b22bf2a
3
+ metadata.gz: 686d40932f01858794198573db83781441b957b5f1b6feb40c573fae0d6b875c
4
+ data.tar.gz: e8c518dbbf9efd739469acf901818e01d1ef2bcdce6dbbbb27be02374f1f252a
5
5
  SHA512:
6
- metadata.gz: 543e4ab981017a51580b7b3a2a750bbd52a1de313ec27556d1cbb72045b2f6a8fbe743e15585cc56e2682914f0040c91b31a1328be86097f1c08b0dadfcdc73a
7
- data.tar.gz: 88da2d0dfa602e6850aacbe4fa20a256606eff5084b4d13826a0b715bf46a6a611dc39b4afa13cda35160a66bbf8226b45fc2e618a06178b023632ff98c6c35a
6
+ metadata.gz: a5f4c347af00d90e6ae287588d9c66c2056a67ddd687080dd0943d81a12e9bd587c43516034d40312fe7fd28d3c9d20587931caa6288e56644f8789e6c0e1227
7
+ data.tar.gz: 8f152357a0230fbc53230ac70f2e56c687c040909f00493e037c2710b0fa2f754c6e38745b736c60e78bce5a7f75b230d8aeb69c6aebf301a0ad36f8a26e9732
data/CHANGELOG-PRO.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Ductwork Pro Changelog
2
2
 
3
+ ## [0.5.0]
4
+
5
+ - feat: enqueue jobs in batches when expanding and support starting delays
6
+
3
7
  ## [0.4.0]
4
8
 
5
9
  - feat: release pipeline or job claim if not finished by shutdown timeout - this is basically the same as what happens when a step times out except we don't restart the thread because we're shutting down
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Ductwork Changelog
2
2
 
3
+ ## [0.23.0]
4
+
5
+ - chore: add `paused` pipeline status to enum
6
+
7
+ ## [0.22.0]
8
+
9
+ - feat: add optional `to` keyword argument to `chain` transition - this makes the DSL a bit more aligned
10
+
3
11
  ## [0.21.0]
4
12
 
5
13
  - feat: enqueue jobs in batches when expanding - this marks a major performance improvement
data/README.md CHANGED
@@ -103,7 +103,7 @@ class EnrichUserDataPipeline < Ductwork::Pipeline
103
103
  .divide(to: [FetchDataFromSourceA, # Split into parallel branches
104
104
  FetchDataFromSourceB])
105
105
  .combine(into: CollateUserData) # Merge branches back together
106
- .chain(UpdateUserData) # Sequential processing
106
+ .chain(to: UpdateUserData) # Sequential processing
107
107
  .collapse(into: ReportSuccess) # Gather expanded steps
108
108
  end
109
109
  end
@@ -30,7 +30,8 @@ module Ductwork
30
30
  self
31
31
  end
32
32
 
33
- def chain(klass)
33
+ def chain(klass = nil, to: nil)
34
+ klass ||= to
34
35
  validate_classes!(klass)
35
36
  validate_definition_started!(action: "chaining")
36
37
  add_edge_to_last_nodes(klass, type: :chain)
@@ -19,6 +19,7 @@ module Ductwork
19
19
  waiting: "waiting",
20
20
  advancing: "advancing",
21
21
  halted: "halted",
22
+ paused: "paused",
22
23
  completed: "completed"
23
24
 
24
25
  def self.inherited(subclass)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ductwork
4
- VERSION = "0.21.0"
4
+ VERSION = "0.23.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ductwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Ewing