Skip to content

Commit

Permalink
fix: Attempt to fix job launch error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Jan 14, 2025
1 parent 6a5005c commit 0cf4c82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions viewer/squonk_job_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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'...
Expand Down

0 comments on commit 0cf4c82

Please sign in to comment.