Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/osw/utils/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@
import osw.model.entity as model
from osw.auth import CredentialManager
from osw.core import OSW
from osw.utils._httpx_gateway import _install as _install_gateway_hook
from osw.utils.wiki import get_full_title
from osw.wtsite import WtSite

# Auto-patch httpx at import time if PREFECT_API_URL is an ApiGateway URL.
# This ensures the transport is active for ALL Prefect API calls, not just
# those inside deploy(). The patch is lazy — no MW login until first request.
_install_gateway_hook()


# ------------------------------ CONNECTION ---------------------
class ConnectionSettings(BaseModel):
Expand Down
Loading