From 0cf4c8233134614821c29bdeaae0fff2c953e48b Mon Sep 17 00:00:00 2001 From: Alan Christie Date: Tue, 14 Jan 2025 16:52:09 +0000 Subject: [PATCH] fix: Attempt to fix job launch error --- viewer/squonk_job_request.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/viewer/squonk_job_request.py b/viewer/squonk_job_request.py index 854d3426..a96f4dc9 100644 --- a/viewer/squonk_job_request.py +++ b/viewer/squonk_job_request.py @@ -212,7 +212,8 @@ def create_squonk_job(request): callback_context=job_request.code, specification=json.loads(squonk_job_spec), ) - logger.debug(result) + logger.info('+ create_squonk_job(%s) type(result)=%s', job_name, type(result)) + logger.info('+ create_squonk_job(%s) result=%s', job_name, result) if not result.success: logger.warning( @@ -228,7 +229,7 @@ def create_squonk_job(request): # for use by any callbacks. The 'result' will contain the callback token # and the Job's decoded command (that will be interrogated when the Job s complete) job_request.squonk_job_info = result - job_request.job_start_datetime = datetime.datetime.utcnow() + job_request.job_start_datetime = datetime.datetime.now(datetime.timezone.utc) job_request.save() # Now start the job 'for real'...