You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying King Arthur out, and have run into a couple of instances where the job result is None or result.summary is None, but the code tries to get fields from it and crashes. I put in some quick if result.summary: clauses to the plug the hole in my local version, but I wonder if that's just masking some deeper issue about an assumed guarantee of when result.summary is set that is not being respected.
I've seen this happen with at least this snippet from scheduler.py:
logger.error("Job #%s (task: %s) failed but will be resumed",
job_id, task_id)
if result.summary.fetched > 0:
task.backend_args['next_from_date'] = result.summary.max_updated_on
if result.summary.max_offset:
task.backend_args['next_offset'] = result.summary.max_offset
which raises AttributeError: 'NoneType' object has no attribute 'summary', and this one in jobs.py
I'm trying King Arthur out, and have run into a couple of instances where the job result is
None
orresult.summary
isNone
, but the code tries to get fields from it and crashes. I put in some quickif result.summary:
clauses to the plug the hole in my local version, but I wonder if that's just masking some deeper issue about an assumed guarantee of whenresult.summary
is set that is not being respected.I've seen this happen with at least this snippet from scheduler.py:
which raises
AttributeError: 'NoneType' object has no attribute 'summary'
, and this one in jobs.pywhich raises
AttributeError: 'NoneType' object has no attribute 'fetched'
.The text was updated successfully, but these errors were encountered: