scalable-pypeline 2.0.6__py2.py3-none-any.whl → 2.0.8__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/dramatiq.py +13 -5
- {scalable_pypeline-2.0.6.dist-info → scalable_pypeline-2.0.8.dist-info}/METADATA +1 -1
- {scalable_pypeline-2.0.6.dist-info → scalable_pypeline-2.0.8.dist-info}/RECORD +8 -8
- {scalable_pypeline-2.0.6.dist-info → scalable_pypeline-2.0.8.dist-info}/LICENSE +0 -0
- {scalable_pypeline-2.0.6.dist-info → scalable_pypeline-2.0.8.dist-info}/WHEEL +0 -0
- {scalable_pypeline-2.0.6.dist-info → scalable_pypeline-2.0.8.dist-info}/entry_points.txt +0 -0
- {scalable_pypeline-2.0.6.dist-info → scalable_pypeline-2.0.8.dist-info}/top_level.txt +0 -0
pypeline/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "2.0.
|
1
|
+
__version__ = "2.0.8"
|
pypeline/dramatiq.py
CHANGED
@@ -4,9 +4,10 @@ import sys
|
|
4
4
|
import typing
|
5
5
|
import pika
|
6
6
|
import logging
|
7
|
-
+from urllib.parse import urlparse
|
8
7
|
|
9
8
|
import click
|
9
|
+
from urllib.parse import urlparse
|
10
|
+
|
10
11
|
from pypeline.extensions import pypeline_config
|
11
12
|
from warnings import warn
|
12
13
|
from functools import wraps
|
@@ -178,8 +179,7 @@ def register_actors_for_workers(broker: Broker):
|
|
178
179
|
pipeline_meta["store_results"] = True
|
179
180
|
_ = register_lazy_actor(broker, tmp_handler, pipeline_meta)
|
180
181
|
except Exception as e:
|
181
|
-
|
182
|
-
print(f"Unable to add a task to dramatiq: {e}")
|
182
|
+
logger.exception(f"Unable to add a task to dramatiq: {e}")
|
183
183
|
|
184
184
|
|
185
185
|
class Dramatiq:
|
@@ -259,7 +259,7 @@ class Dramatiq:
|
|
259
259
|
|
260
260
|
# Callable function is expected to setBroker()
|
261
261
|
if callable(broker_or_callable):
|
262
|
-
|
262
|
+
logger.info(f"Configuring broker via {DEFAULT_BROKER_CALLABLE}")
|
263
263
|
broker_or_callable()
|
264
264
|
else:
|
265
265
|
raise TypeError("DEFAULT_BROKER_CALLABLE must point to a callable function")
|
@@ -367,7 +367,15 @@ def list_managed_actors(broker, queues):
|
|
367
367
|
def cron_scheduler(): # pragma: no cover
|
368
368
|
# Configure our broker that we will schedule registered tasks for
|
369
369
|
scheduler = BlockingScheduler()
|
370
|
-
|
370
|
+
module_name, broker_or_callable = import_object(DEFAULT_BROKER_CALLABLE)
|
371
|
+
|
372
|
+
# Callable function is expected to setBroker()
|
373
|
+
if callable(broker_or_callable):
|
374
|
+
logger.info(f"Configuring broker via {DEFAULT_BROKER_CALLABLE}")
|
375
|
+
broker_or_callable()
|
376
|
+
else:
|
377
|
+
raise TypeError("DEFAULT_BROKER_CALLABLE must point to a callable function")
|
378
|
+
|
371
379
|
broker = get_broker()
|
372
380
|
jobs = retrieve_latest_schedule_config()
|
373
381
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
pypeline/__init__.py,sha256=
|
1
|
+
pypeline/__init__.py,sha256=oVbl6ILP5dyBZtm2iUzM_QTUhSy3C325aGgDThF7P_4,22
|
2
2
|
pypeline/barrier.py,sha256=dLDaprH5NB-C7MQjZqPpBBhMjmO0VV_kTonlgweznHc,1096
|
3
3
|
pypeline/composition.py,sha256=pTw9Xb9h4JnV4siFc3JStm5lB-i9djUADo3Kh5K3s7g,12976
|
4
4
|
pypeline/constants.py,sha256=coiF8dMP25qIwoNYSnS7oy7hCd4-5yqPFmdPsN93Q1A,2892
|
5
|
-
pypeline/dramatiq.py,sha256=
|
5
|
+
pypeline/dramatiq.py,sha256=Y909HoNhH5Berd61N6nHrpE1dTU-zmvimH91SldP-SI,15912
|
6
6
|
pypeline/extensions.py,sha256=BzOTnXhNxap3N7uIUUh_hO6dDwx08Vc_RJDE93_K0Lo,610
|
7
7
|
pypeline/middleware.py,sha256=kTp6niYoe2nXIiN6EGRfdpxrJyioo0GPxDkfefbGlEk,2821
|
8
8
|
pypeline/pipeline_config_schema.py,sha256=DQ_RMucnA0AyrndlW6lkb0orGromcO6C9GgLHyG6lJ0,8013
|
@@ -19,9 +19,9 @@ pypeline/utils/config_utils.py,sha256=rAIATyoW7kGETZ_Z2DqiXtGd7bJp5uPfcLtfNPOYsN
|
|
19
19
|
pypeline/utils/module_utils.py,sha256=boEP9IYr4p_ick7HlVUfIxOYHQlEmo7dgvDBCQc-C28,2914
|
20
20
|
pypeline/utils/pipeline_utils.py,sha256=tt71hLEFgPieokJZlC1rP2dmCTctrOPt7K1rGlbnT4o,5967
|
21
21
|
tests/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
-
scalable_pypeline-2.0.
|
23
|
-
scalable_pypeline-2.0.
|
24
|
-
scalable_pypeline-2.0.
|
25
|
-
scalable_pypeline-2.0.
|
26
|
-
scalable_pypeline-2.0.
|
27
|
-
scalable_pypeline-2.0.
|
22
|
+
scalable_pypeline-2.0.8.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
23
|
+
scalable_pypeline-2.0.8.dist-info/METADATA,sha256=nXqHm1XzkAsHmwOO2tDIE1xHFDeGXPJeZYcYjMUYWtc,6239
|
24
|
+
scalable_pypeline-2.0.8.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
|
25
|
+
scalable_pypeline-2.0.8.dist-info/entry_points.txt,sha256=uWs10ODfHSBKo2Cx_QaUjPHQTpZ3e77j9VlAdRRmMyg,119
|
26
|
+
scalable_pypeline-2.0.8.dist-info/top_level.txt,sha256=C7dpkEOc_-nnsAQb28BfQknjD6XHRyS9ZrvVeoIbV7s,15
|
27
|
+
scalable_pypeline-2.0.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|