Links
“View in YellowDog Portal” operator extra links.
Airflow 3 computes an operator link when the task instance finishes (or defers)
and stores it in XCom; the API server then serves the stored value without
touching the operator, the hook or the connection. get_link() therefore
runs on the worker, where the connection and the XCom return_value (the
resource ID, pushed before the task waits) are available.
- class yellowdog_provider.links.yellowdog_links.WorkRequirementPortalLink[source]
Bases:
_PortalLinkLink to the work requirement in the YellowDog Portal.
- property name: str
Name of the link. This will be the button name on the task UI.
- path_prefix = 'work'
- class yellowdog_provider.links.yellowdog_links.WorkerPoolPortalLink[source]
Bases:
_PortalLinkLink to the worker pool in the YellowDog Portal.
- property name: str
Name of the link. This will be the button name on the task UI.
- path_prefix = 'workers'
- yellowdog_provider.links.yellowdog_links.portal_base_from_api_url(api_url: str) str | None[source]
Derive the Portal’s base URL from a Platform API URL by replacing a leading
api.host label withportal.(https://api.yellowdog.ai->https://portal.yellowdog.ai).- Returns:
the Portal base URL (no trailing slash), or
Noneif the host has no leadingapi.label