scalable-pypeline 2.1.7__py2.py3-none-any.whl → 2.1.9__py2.py3-none-any.whl
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.
- pypeline/__init__.py +1 -1
- pypeline/pipeline_settings_schema.py +3 -0
- pypeline/pipelines/middleware/get_active_worker_id_middleware.py +5 -1
- {scalable_pypeline-2.1.7.dist-info → scalable_pypeline-2.1.9.dist-info}/METADATA +1 -1
- {scalable_pypeline-2.1.7.dist-info → scalable_pypeline-2.1.9.dist-info}/RECORD +9 -9
- {scalable_pypeline-2.1.7.dist-info → scalable_pypeline-2.1.9.dist-info}/LICENSE +0 -0
- {scalable_pypeline-2.1.7.dist-info → scalable_pypeline-2.1.9.dist-info}/WHEEL +0 -0
- {scalable_pypeline-2.1.7.dist-info → scalable_pypeline-2.1.9.dist-info}/entry_points.txt +0 -0
- {scalable_pypeline-2.1.7.dist-info → scalable_pypeline-2.1.9.dist-info}/top_level.txt +0 -0
pypeline/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "2.1.
|
1
|
+
__version__ = "2.1.9"
|
@@ -168,6 +168,9 @@ def create_pipeline_settings_schema(pipeline_settings_schema_data):
|
|
168
168
|
# Mark the field as required if specified
|
169
169
|
if key in pipeline_settings_schema_data.get("required", []):
|
170
170
|
field_args["required"] = True
|
171
|
+
else:
|
172
|
+
field_args["required"] = False
|
173
|
+
field_args["allow_none"] = True
|
171
174
|
|
172
175
|
# Create the field and add to the schema fields dictionary
|
173
176
|
if data_type == "object":
|
@@ -12,7 +12,11 @@ class GetActiveWorkerIdMiddleware(Middleware):
|
|
12
12
|
return cls._ACTIVE_WORKER_ID.get()
|
13
13
|
|
14
14
|
def before_process_message(self, broker, message):
|
15
|
-
|
15
|
+
"""Sets the active worker ID, verifying broker has a broker_id first."""
|
16
|
+
broker_id = getattr(broker, "broker_id", None)
|
17
|
+
if not broker_id:
|
18
|
+
return
|
19
|
+
self._ACTIVE_WORKER_ID.set(broker_id)
|
16
20
|
|
17
21
|
def after_process_message(self, broker, message, *, result=None, exception=None):
|
18
22
|
self._ACTIVE_WORKER_ID.set(None)
|
@@ -1,10 +1,10 @@
|
|
1
|
-
pypeline/__init__.py,sha256=
|
1
|
+
pypeline/__init__.py,sha256=Gf0zUMmdRLkPmvwnoP7oCpWn7Ep93jlNIlBD6nifugI,22
|
2
2
|
pypeline/barrier.py,sha256=oO964l9qOCOibweOHyNivmAvufdXOke9nz2tdgclouo,1172
|
3
3
|
pypeline/constants.py,sha256=EGSuLq4KhZ4bxrbtnUgKclELRyya5ipvv0WeybCzNAs,3049
|
4
4
|
pypeline/dramatiq.py,sha256=5whdOQjzknLjl9lYNj5-f2jRw5ysRPhQExi5NN4KeOY,12837
|
5
5
|
pypeline/extensions.py,sha256=BzOTnXhNxap3N7uIUUh_hO6dDwx08Vc_RJDE93_K0Lo,610
|
6
6
|
pypeline/pipeline_config_schema.py,sha256=hK2_egtg-YFx_XJDs_NyrOTGKkel7W83X-G0sic52sM,10592
|
7
|
-
pypeline/pipeline_settings_schema.py,sha256=
|
7
|
+
pypeline/pipeline_settings_schema.py,sha256=IBBtWqxrRA0MrUwNZEnGhYJbmag-sus1Ln6VCrUvuyY,20313
|
8
8
|
pypeline/pypeline_yaml.py,sha256=Og08sUKwOjq7JYPnkg-NIcGbHravYCkC5Arz22rZEtA,16981
|
9
9
|
pypeline/schedule_config_schema.py,sha256=vtZV-5wpGcAiYcXxdBPRkrjsbR6x_9E-1PC2elrKKbE,3611
|
10
10
|
pypeline/flask/__init__.py,sha256=AdljRh0lMiS8ExgDmgzObwVs8jW7hqQuf83Ml8kn8GQ,491
|
@@ -19,7 +19,7 @@ pypeline/pipelines/composition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
19
19
|
pypeline/pipelines/composition/parallel_pipeline_composition.py,sha256=pTw9Xb9h4JnV4siFc3JStm5lB-i9djUADo3Kh5K3s7g,12976
|
20
20
|
pypeline/pipelines/composition/pypeline_composition.py,sha256=UBuDKEfRoIbL-9c-HH2ZTVbzfkwFSlNoFH-AVNqt0QE,7965
|
21
21
|
pypeline/pipelines/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
-
pypeline/pipelines/middleware/get_active_worker_id_middleware.py,sha256=
|
22
|
+
pypeline/pipelines/middleware/get_active_worker_id_middleware.py,sha256=X4ZfRk3L8MD00DTsGHth7oOdy-W7LQV96T8vu5UC42A,755
|
23
23
|
pypeline/pipelines/middleware/parallel_pipeline_middleware.py,sha256=kTp6niYoe2nXIiN6EGRfdpxrJyioo0GPxDkfefbGlEk,2821
|
24
24
|
pypeline/pipelines/middleware/pypeline_middleware.py,sha256=IXVqzcOlSJ43lsn-i298RkaeygB-PTJjsvdTDtpgfwg,8141
|
25
25
|
pypeline/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -29,9 +29,9 @@ pypeline/utils/module_utils.py,sha256=-yEJIukDCoXnmlZVXB6Dww25tH6GdPE5SoFqv6pfdV
|
|
29
29
|
pypeline/utils/pipeline_utils.py,sha256=kGP1QwCJikGC5QNRtzRXCDVewyRMpWIqERTNnxGLlSY,4795
|
30
30
|
pypeline/utils/schema_utils.py,sha256=Fgl0y9Cuo_TZeEx_S3gaSVnLjn6467LTkjb2ek7Ms98,851
|
31
31
|
tests/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
|
-
scalable_pypeline-2.1.
|
33
|
-
scalable_pypeline-2.1.
|
34
|
-
scalable_pypeline-2.1.
|
35
|
-
scalable_pypeline-2.1.
|
36
|
-
scalable_pypeline-2.1.
|
37
|
-
scalable_pypeline-2.1.
|
32
|
+
scalable_pypeline-2.1.9.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
33
|
+
scalable_pypeline-2.1.9.dist-info/METADATA,sha256=H96u1H3mZdGCb1yfmo52azC_BiVq0rzo2nBYTViHElk,5926
|
34
|
+
scalable_pypeline-2.1.9.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
|
35
|
+
scalable_pypeline-2.1.9.dist-info/entry_points.txt,sha256=uWs10ODfHSBKo2Cx_QaUjPHQTpZ3e77j9VlAdRRmMyg,119
|
36
|
+
scalable_pypeline-2.1.9.dist-info/top_level.txt,sha256=C7dpkEOc_-nnsAQb28BfQknjD6XHRyS9ZrvVeoIbV7s,15
|
37
|
+
scalable_pypeline-2.1.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|