prefect-client 3.0.6__py3-none-any.whl → 3.0.8__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.
- prefect/_version.py +3 -3
- prefect/blocks/notifications.py +21 -0
- prefect/flows.py +1 -1
- prefect/utilities/dockerutils.py +1 -1
- {prefect_client-3.0.6.dist-info → prefect_client-3.0.8.dist-info}/METADATA +1 -1
- {prefect_client-3.0.6.dist-info → prefect_client-3.0.8.dist-info}/RECORD +9 -9
- {prefect_client-3.0.6.dist-info → prefect_client-3.0.8.dist-info}/LICENSE +0 -0
- {prefect_client-3.0.6.dist-info → prefect_client-3.0.8.dist-info}/WHEEL +0 -0
- {prefect_client-3.0.6.dist-info → prefect_client-3.0.8.dist-info}/top_level.txt +0 -0
prefect/_version.py
CHANGED
@@ -8,11 +8,11 @@ import json
|
|
8
8
|
|
9
9
|
version_json = '''
|
10
10
|
{
|
11
|
-
"date": "2024-10-
|
11
|
+
"date": "2024-10-10T10:17:25-0500",
|
12
12
|
"dirty": true,
|
13
13
|
"error": null,
|
14
|
-
"full-revisionid": "
|
15
|
-
"version": "3.0.
|
14
|
+
"full-revisionid": "0894bad49e256657cab8208205623c4c7b75ad1f",
|
15
|
+
"version": "3.0.8"
|
16
16
|
}
|
17
17
|
''' # END VERSION_JSON
|
18
18
|
|
prefect/blocks/notifications.py
CHANGED
@@ -294,6 +294,27 @@ class PagerDutyWebHook(AbstractAppriseNotificationBlock):
|
|
294
294
|
)
|
295
295
|
self._start_apprise_client(url)
|
296
296
|
|
297
|
+
@sync_compatible
|
298
|
+
async def notify(
|
299
|
+
self,
|
300
|
+
body: str,
|
301
|
+
subject: Optional[str] = None,
|
302
|
+
):
|
303
|
+
"""
|
304
|
+
Apprise will combine subject and body by default, so we need to move
|
305
|
+
the body into the custom_details field. custom_details is part of the
|
306
|
+
webhook url, so we need to update the url and restart the client.
|
307
|
+
"""
|
308
|
+
if subject:
|
309
|
+
self.custom_details = self.custom_details or {}
|
310
|
+
self.custom_details.update(
|
311
|
+
{"Prefect Notification Body": body.replace(" ", "%20")}
|
312
|
+
)
|
313
|
+
body = " "
|
314
|
+
self.block_initialization()
|
315
|
+
|
316
|
+
await super().notify(body, subject)
|
317
|
+
|
297
318
|
|
298
319
|
class TwilioSMS(AbstractAppriseNotificationBlock):
|
299
320
|
"""Enables sending notifications via Twilio SMS.
|
prefect/flows.py
CHANGED
@@ -593,7 +593,7 @@ class Flow(Generic[P, R]):
|
|
593
593
|
# Get the updated parameter dict with cast values from the model
|
594
594
|
cast_parameters = {
|
595
595
|
k: v
|
596
|
-
for k, v in model.
|
596
|
+
for k, v in dict(iter(model)).items()
|
597
597
|
if k in model.model_fields_set or model.model_fields[k].default_factory
|
598
598
|
}
|
599
599
|
return cast_parameters
|
prefect/utilities/dockerutils.py
CHANGED
@@ -59,7 +59,7 @@ def get_prefect_image_name(
|
|
59
59
|
parsed_version = Version(prefect_version or prefect.__version__)
|
60
60
|
is_prod_build = parsed_version.post is None
|
61
61
|
prefect_version = (
|
62
|
-
parsed_version
|
62
|
+
parsed_version.base_version
|
63
63
|
if is_prod_build
|
64
64
|
else "sha-" + prefect.__version_info__["full-revisionid"][:7]
|
65
65
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
prefect/.prefectignore,sha256=awSprvKT0vI8a64mEOLrMxhxqcO-b0ERQeYpA2rNKVQ,390
|
2
2
|
prefect/__init__.py,sha256=2jnhqiLx5v3iQ2JeTVp4V85uSC_3Yg3HlE05JjjQSGc,3223
|
3
|
-
prefect/_version.py,sha256=
|
3
|
+
prefect/_version.py,sha256=KRrx9_zdQ4japuLlN9Lgz-NJqRSHpWPy5o2-HKoeKTU,496
|
4
4
|
prefect/agent.py,sha256=BOVVY5z-vUIQ2u8LwMTXDaNys2fjOZSS5YGDwJmTQjI,230
|
5
5
|
prefect/artifacts.py,sha256=dsxFWmdg2r9zbHM3KgKOR5YbJ29_dXUYF9kipJpbxkE,13009
|
6
6
|
prefect/automations.py,sha256=NlQ62GPJzy-gnWQqX7c6CQJKw7p60WLGDAFcy82vtg4,5613
|
@@ -11,7 +11,7 @@ prefect/exceptions.py,sha256=V_nRpS2Z93PvJMoQdXbx8zepVaFb-pWanCqVi7T1ngI,11803
|
|
11
11
|
prefect/filesystems.py,sha256=CxwMmKY8LBUed_9IqE2jUqxVCWhXa1r2fjKgLbIC2Vg,17893
|
12
12
|
prefect/flow_engine.py,sha256=p1IoMa5okV0l-0KGjDxNDsR1N74K5oP_Lb3V0z7v49U,30076
|
13
13
|
prefect/flow_runs.py,sha256=EaXRIQTOnwnA0fO7_EjwafFRmS57K_CRy0Xsz3JDIhc,16070
|
14
|
-
prefect/flows.py,sha256=
|
14
|
+
prefect/flows.py,sha256=lBv62fWlnembj-AsUkfuA96U8nHp8CGmnLrOaD_eWXA,89594
|
15
15
|
prefect/futures.py,sha256=_hmzkFwCGhiSBWrlfXqipN7XyA8WzfjiOhm-mtchARU,16329
|
16
16
|
prefect/main.py,sha256=IdtnJR5-IwP8EZsfhMFKj92ylMhNyau9X_eMcTP2ZjM,2336
|
17
17
|
prefect/plugins.py,sha256=HY7Z7OJlltqzsUiPMEL1Y_hQbHw0CeZKayWiK-k8DP4,2435
|
@@ -62,7 +62,7 @@ prefect/blocks/__init__.py,sha256=BUfh6gIwA6HEjRyVCAiv0he3M1zfM-oY-JrlBfeWeY8,18
|
|
62
62
|
prefect/blocks/abstract.py,sha256=YLzCaf3yXv6wFCF5ZqCIHJNwH7fME1rLxC-SijARHzk,16319
|
63
63
|
prefect/blocks/core.py,sha256=l_56oggt9uJOABHus-NCXLQ4akeY4kzyDUO37ZyosX0,52783
|
64
64
|
prefect/blocks/fields.py,sha256=1m507VVmkpOnMF_7N-qboRjtw4_ceIuDneX3jZ3Jm54,63
|
65
|
-
prefect/blocks/notifications.py,sha256=
|
65
|
+
prefect/blocks/notifications.py,sha256=Us5xkkicFes-Xwe0h4U7kdeDBUe6qY55Ig259oGkHlY,30484
|
66
66
|
prefect/blocks/redis.py,sha256=GUKYyx2QLtyNvgf5FT_dJxbgQcOzWCja3I23J1-AXhM,5629
|
67
67
|
prefect/blocks/system.py,sha256=OacB-LLXaNiLY49bPx7aAjmvdEdBxNoaOdzsCUcDr2c,4563
|
68
68
|
prefect/blocks/webhook.py,sha256=F0u1WSO17Gda8qwr9gYaA84Nfc8Qkic6HhhJMYXRzug,2496
|
@@ -170,7 +170,7 @@ prefect/utilities/collections.py,sha256=_YVHZfT49phrXq7aDUmn4pqWwEtJQTPy2nJD0M1s
|
|
170
170
|
prefect/utilities/compat.py,sha256=mNQZDnzyKaOqy-OV-DnmH_dc7CNF5nQgW_EsA4xMr7g,906
|
171
171
|
prefect/utilities/context.py,sha256=BThuUW94-IYgFYTeMIM9KMo8ShT3oiI7w5ajZHzU1j0,1377
|
172
172
|
prefect/utilities/dispatch.py,sha256=EthEmyRwv-4W8z2BJclrsOQHJ_pJoZYL0t2cyYPEa-E,6098
|
173
|
-
prefect/utilities/dockerutils.py,sha256=
|
173
|
+
prefect/utilities/dockerutils.py,sha256=nrekaN-ZpiKMhTH586pw4LZdjig3_XQrGgW-yCfc1UA,20371
|
174
174
|
prefect/utilities/engine.py,sha256=KaGtKWNZ-EaSTTppL7zpqWWjDLpMcPTVK0Gfd4zXpRM,32087
|
175
175
|
prefect/utilities/filesystem.py,sha256=frAyy6qOeYa7c-jVbEUGZQEe6J1yF8I_SvUepPd59gI,4415
|
176
176
|
prefect/utilities/hashing.py,sha256=EOwZLmoIZImuSTxAvVqInabxJ-4RpEfYeg9e2EDQF8o,1752
|
@@ -197,8 +197,8 @@ prefect/workers/cloud.py,sha256=BOVVY5z-vUIQ2u8LwMTXDaNys2fjOZSS5YGDwJmTQjI,230
|
|
197
197
|
prefect/workers/process.py,sha256=tcJ3fbiraLCfpVGpv8dOHwMSfVzeD_kyguUOvPuIz6I,19796
|
198
198
|
prefect/workers/server.py,sha256=lgh2FfSuaNU7b6HPxSFm8JtKvAvHsZGkiOo4y4tW1Cw,2022
|
199
199
|
prefect/workers/utilities.py,sha256=VfPfAlGtTuDj0-Kb8WlMgAuOfgXCdrGAnKMapPSBrwc,2483
|
200
|
-
prefect_client-3.0.
|
201
|
-
prefect_client-3.0.
|
202
|
-
prefect_client-3.0.
|
203
|
-
prefect_client-3.0.
|
204
|
-
prefect_client-3.0.
|
200
|
+
prefect_client-3.0.8.dist-info/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
|
201
|
+
prefect_client-3.0.8.dist-info/METADATA,sha256=J7oDkuYD2cIsUOZE0aupaZLCBb3r2s6ah04ZLt2K0Ks,7332
|
202
|
+
prefect_client-3.0.8.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
203
|
+
prefect_client-3.0.8.dist-info/top_level.txt,sha256=MJZYJgFdbRc2woQCeB4vM6T33tr01TmkEhRcns6H_H4,8
|
204
|
+
prefect_client-3.0.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|