There was an error while loading. Please reload this page.
2 parents 618130d + 7a6964b commit 271ba6eCopy full SHA for 271ba6e
1 file changed
src/osw/utils/workflow.py
@@ -24,9 +24,15 @@
24
import osw.model.entity as model
25
from osw.auth import CredentialManager
26
from osw.core import OSW
27
+from osw.utils._httpx_gateway import _install as _install_gateway_hook
28
from osw.utils.wiki import get_full_title
29
from osw.wtsite import WtSite
30
31
+# Auto-patch httpx at import time if PREFECT_API_URL is an ApiGateway URL.
32
+# This ensures the transport is active for ALL Prefect API calls, not just
33
+# those inside deploy(). The patch is lazy — no MW login until first request.
34
+_install_gateway_hook()
35
+
36
37
# ------------------------------ CONNECTION ---------------------
38
class ConnectionSettings(BaseModel):
0 commit comments