prefect-client 2.19.0__py3-none-any.whl → 2.19.1__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.
@@ -22,7 +22,12 @@ if HAS_PYDANTIC_V2:
22
22
  else:
23
23
  import pydantic
24
24
 
25
- from prefect.settings import PREFECT_EXPERIMENTAL_WARN, SETTING_VARIABLES, Setting
25
+ from prefect.settings import (
26
+ PREFECT_EXPERIMENTAL_WARN,
27
+ SETTING_VARIABLES,
28
+ Setting,
29
+ automation_settings_enabled,
30
+ )
26
31
  from prefect.utilities.callables import get_call_parameters
27
32
 
28
33
  T = TypeVar("T", bound=Callable[..., Any])
@@ -254,8 +259,12 @@ def enabled_experiments() -> Set[str]:
254
259
  """
255
260
  Return the set of all enabled experiments.
256
261
  """
257
- return {
262
+ enabled_experimental_settings = {
258
263
  name[len("PREFECT_EXPERIMENTAL_ENABLE_") :].lower()
259
264
  for name, setting in SETTING_VARIABLES.items()
260
265
  if name.startswith("PREFECT_EXPERIMENTAL_ENABLE_") and setting.value()
261
266
  }
267
+ if automation_settings_enabled():
268
+ enabled_experimental_settings.add("automations")
269
+
270
+ return enabled_experimental_settings
prefect/settings.py CHANGED
@@ -1756,6 +1756,16 @@ How long to cache related resource data for emitting server-side vents
1756
1756
  """
1757
1757
 
1758
1758
 
1759
+ def automation_settings_enabled() -> bool:
1760
+ """
1761
+ Whether or not automations are enabled.
1762
+ """
1763
+ return (
1764
+ PREFECT_EXPERIMENTAL_EVENTS.value()
1765
+ and PREFECT_API_SERVICES_TRIGGERS_ENABLED.value()
1766
+ )
1767
+
1768
+
1759
1769
  # Deprecated settings ------------------------------------------------------------------
1760
1770
 
1761
1771
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prefect-client
3
- Version: 2.19.0
3
+ Version: 2.19.1
4
4
  Summary: Workflow orchestration and management.
5
5
  Home-page: https://www.prefect.io
6
6
  Author: Prefect Technologies, Inc.
@@ -19,7 +19,7 @@ prefect/profiles.toml,sha256=Fs8hD_BdWHZgAijgk8pK_Zx-Pm-YFixqDIfEP6fM-qU,38
19
19
  prefect/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  prefect/results.py,sha256=JXuySIfJb9weg49A2YsI3ZxoPoAAYcXn7ajui_8vMbE,25502
21
21
  prefect/serializers.py,sha256=MsMTPgo6APq-pN1pcLD9COdVFnBS9E3WaMuaKgpeJdQ,8821
22
- prefect/settings.py,sha256=8E58IVKzkLZpZdz4ZlSd8yPZiKYnYB4-M0BKcBesXKs,74705
22
+ prefect/settings.py,sha256=gFVXmGLapnkIV7hQvRJMJ6472UZJr6gqZYk1xwcqgnQ,74931
23
23
  prefect/states.py,sha256=B38zIXnqc8cmw3GPxmMQ4thX6pXb6UtG4PoTZ5thGQs,21036
24
24
  prefect/task_engine.py,sha256=_2I7XLwoT_nNhpzTMa_52aQKjsDoaW6WpzwIHYEWZS0,2598
25
25
  prefect/task_runners.py,sha256=HXUg5UqhZRN2QNBqMdGE1lKhwFhT8TaRN75ScgLbnw8,11012
@@ -31,7 +31,7 @@ prefect/_internal/_logging.py,sha256=HvNHY-8P469o5u4LYEDBTem69XZEt1QUeUaLToijpak
31
31
  prefect/_internal/pytz.py,sha256=47Y28jKxUvgw7vaEvN-Xl0laiVdMLXC8IRUEk7oHz1Q,13749
32
32
  prefect/_internal/compatibility/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  prefect/_internal/compatibility/deprecated.py,sha256=ORtcd5nIUQURxgaFW1MJ6OwTbmsGtwypjTyHTkVLHB4,11578
34
- prefect/_internal/compatibility/experimental.py,sha256=ywG38cgmUNrZijnI-K8uJwCI0BQHJJci6lG8gl8HuH8,7458
34
+ prefect/_internal/compatibility/experimental.py,sha256=qAf2Pp8vYVKi_0P29X5Dyy8qZ430rl2fXa9tXdqoYWk,7670
35
35
  prefect/_internal/concurrency/__init__.py,sha256=ncKwi1NhE3umSFGSKRk9wEVKzN1z1ZD-fmY4EDZHH_U,2142
36
36
  prefect/_internal/concurrency/api.py,sha256=nrNENVcoFNbzo-RwdVSjA6VtfrXFQWcjTGYoacGcd8k,8223
37
37
  prefect/_internal/concurrency/calls.py,sha256=SVMR1yPTQJtBX095WfRk6cMTq4YKf_L6G77qtaTyN3I,15564
@@ -285,8 +285,8 @@ prefect/workers/block.py,sha256=5bdCuqT-4I-et_8ZLG2y1AODzYiCQwFiivhdt5NMEog,7635
285
285
  prefect/workers/process.py,sha256=pPtCdA7fKQ4OsvoitT-cayZeh5HgLX4xBUYlb2Zad-Q,9475
286
286
  prefect/workers/server.py,sha256=WVZJxR8nTMzK0ov0BD0xw5OyQpT26AxlXbsGQ1OrxeQ,1551
287
287
  prefect/workers/utilities.py,sha256=VfPfAlGtTuDj0-Kb8WlMgAuOfgXCdrGAnKMapPSBrwc,2483
288
- prefect_client-2.19.0.dist-info/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
289
- prefect_client-2.19.0.dist-info/METADATA,sha256=OXU7N_vN8Xo2hmX4NuwZ9aGNpW72fzin-Dl2kBJJv6s,7401
290
- prefect_client-2.19.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
291
- prefect_client-2.19.0.dist-info/top_level.txt,sha256=MJZYJgFdbRc2woQCeB4vM6T33tr01TmkEhRcns6H_H4,8
292
- prefect_client-2.19.0.dist-info/RECORD,,
288
+ prefect_client-2.19.1.dist-info/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
289
+ prefect_client-2.19.1.dist-info/METADATA,sha256=X5UJXDm0rxH08gKCwM0U4S6y3szNCNKyLqLAbTz_dNU,7401
290
+ prefect_client-2.19.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
291
+ prefect_client-2.19.1.dist-info/top_level.txt,sha256=MJZYJgFdbRc2woQCeB4vM6T33tr01TmkEhRcns6H_H4,8
292
+ prefect_client-2.19.1.dist-info/RECORD,,