Skip to content

Commit

Permalink
Merge pull request #1044 from hackforla/mattyweb/issue1028
Browse files Browse the repository at this point in the history
Mattyweb/issue1028
  • Loading branch information
mattyweb authored Mar 24, 2021
2 parents 074176e + 2fe7778 commit 0b623fd
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 0b623fd

Please sign in to comment.