Skip to content

Commit 454f57b

Browse files
authored
Add deprecation warning for prefect integration
Added deprecation warning for the prefect integration module.
1 parent 4e6c051 commit 454f57b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

app/integrations/clients/prefect/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,14 @@
77
)
88

99
__all__ = ["PrefectClient", "PrefectConfig", "make_prefect_client"]
10+
# Proxy for backward compatibility
11+
from app.services.prefect.client import PrefectClient # noqa: F401
12+
13+
import warnings
14+
15+
warnings.warn(
16+
"app.integrations.clients.prefect is deprecated. "
17+
"Please use app.services.prefect instead.",
18+
DeprecationWarning,
19+
stacklevel=2
20+
)

0 commit comments

Comments
 (0)