diff --git a/docs-website/docusaurus.config.js b/docs-website/docusaurus.config.js index b016f9518ea6c1..d1a33cbfd0f8a9 100644 --- a/docs-website/docusaurus.config.js +++ b/docs-website/docusaurus.config.js @@ -68,7 +68,7 @@ module.exports = { announcementBar: { id: "announcement-2", content: - '
NEW

Join us at Metadata & AI Summit, Oct. 29 & 30!

Register →
', + '
NEW

Join us at Metadata & AI Summit, Oct. 29 & 30!

Register
', backgroundColor: "#111", textColor: "#ffffff", isCloseable: false, diff --git a/docs-website/src/styles/global.scss b/docs-website/src/styles/global.scss index 96ca07d45d0c28..31261ea3d940de 100644 --- a/docs-website/src/styles/global.scss +++ b/docs-website/src/styles/global.scss @@ -116,21 +116,34 @@ div[class^="announcementBar"] { >div { display: flex; align-items: center; + > div { + @media (max-width: 580px) { + display: none; + } + } + a>span { + @media (max-width: 580px) { + display: none; + } + } >p { text-align: left; line-height: 1.1rem; margin: 0; - >span { - @media (max-width: 780px) { - display: none; - } - } - - @media (max-width: 480px) { - display: none; + @media (max-width: 580px) { + font-size: .9rem; } + // >span { + // @media (max-width: 780px) { + // display: none; + // } + // } + + // @media (max-width: 480px) { + // display: none; + // } } } diff --git a/metadata-ingestion-modules/prefect-plugin/src/prefect_datahub/datahub_emitter.py b/metadata-ingestion-modules/prefect-plugin/src/prefect_datahub/datahub_emitter.py index 5991503416aec7..8617381cf16139 100644 --- a/metadata-ingestion-modules/prefect-plugin/src/prefect_datahub/datahub_emitter.py +++ b/metadata-ingestion-modules/prefect-plugin/src/prefect_datahub/datahub_emitter.py @@ -155,12 +155,11 @@ async def _get_flow_run_graph(self, flow_run_id: str) -> Optional[List[Dict]]: The flow run graph in json format. """ try: - response = orchestration.get_client()._client.get( + response_coroutine = orchestration.get_client()._client.get( f"/flow_runs/{flow_run_id}/graph" ) - if asyncio.iscoroutine(response): - response = await response + response = await response_coroutine if hasattr(response, "json"): response_json = response.json() @@ -410,10 +409,9 @@ async def get_flow_run(flow_run_id: UUID) -> FlowRun: if not hasattr(client, "read_flow_run"): raise ValueError("Client does not support async read_flow_run method") - response = client.read_flow_run(flow_run_id=flow_run_id) + response_coroutine = client.read_flow_run(flow_run_id=flow_run_id) - if asyncio.iscoroutine(response): - response = await response + response = await response_coroutine return FlowRun.parse_obj(response) @@ -477,10 +475,9 @@ async def get_task_run(task_run_id: UUID) -> TaskRun: if not hasattr(client, "read_task_run"): raise ValueError("Client does not support async read_task_run method") - response = client.read_task_run(task_run_id=task_run_id) + response_coroutine = client.read_task_run(task_run_id=task_run_id) - if asyncio.iscoroutine(response): - response = await response + response = await response_coroutine return TaskRun.parse_obj(response)