Skip to content

Commit

Permalink
logging and more
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyweb committed Mar 24, 2021
1 parent d354760 commit 5fe9044
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions server/prefect/tasks/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,8 @@ async def run_js_page(url: str):
executablePath='/usr/bin/google-chrome-stable',
userDataDir='/app',
headless=True,
handleSIGINT=False,
handleSIGTERM=False,
handleSIGHUP=False,
args=[
'--no-sandbox',
'--single-process',
'--disable-dev-shm-usage',
'--disable-gpu',
'--no-zygote'
]
)
else:
Expand All @@ -51,13 +44,6 @@ async def run_js_page(url: str):
handleSIGINT=False,
handleSIGTERM=False,
handleSIGHUP=False,
args=[
'--no-sandbox',
'--single-process',
'--disable-dev-shm-usage',
'--disable-gpu',
'--no-zygote'
]
)

page = await browser.newPage()
Expand All @@ -78,6 +64,8 @@ def reload_reports():

result = asyncio.run(run_js_page(reload_path))

logger.info(result)

if SUCCESS_STRING in result:
logger.info(f"Report reloading successful: {reload_path}")
else:
Expand Down

0 comments on commit 5fe9044

Please sign in to comment.