Skip to content

Commit

Permalink
add log to notice user what is timeout doing when they download image
Browse files Browse the repository at this point in the history
  • Loading branch information
CopyDemon committed Oct 23, 2024
1 parent a96ca43 commit 7392b80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions idaes_ui/fv/fsvis.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ async def _async_save_diagram(
from IPython.display import display as IPythonDisplay

async with async_playwright() as p:
_log.info("launch browser, Max timeout 30s")
browser = await p.chromium.launch(
headless=True, args=["--no-sandbox"], timeout=3000000
)
Expand All @@ -436,6 +437,7 @@ async def _async_save_diagram(
else:
await page.click("#headerExportSvgBtn")

_log.info("Downloading image, Max timeout 30s")
# Click download btn on UI pop modal
async with page.expect_download() as download_info:
await page.click(".control-button", timeout=3000000)
Expand Down

0 comments on commit 7392b80

Please sign in to comment.