From 5fe904462d39618f782d643231e12ae69e55050d Mon Sep 17 00:00:00 2001 From: Matt Webster Date: Wed, 24 Mar 2021 14:26:55 -0700 Subject: [PATCH] logging and more --- server/prefect/tasks/cache.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/server/prefect/tasks/cache.py b/server/prefect/tasks/cache.py index 4dbd02788..4cf91fc9c 100644 --- a/server/prefect/tasks/cache.py +++ b/server/prefect/tasks/cache.py @@ -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: @@ -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() @@ -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: