Skip to content

Commit

Permalink
cope with old jobs where queue_name "q" is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Apr 21, 2021
1 parent 3ce4cb0 commit 66ad5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arq/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def deserialize_result(r: bytes, *, deserializer: Optional[Deserializer] = None)
result=d['r'],
start_time=ms_to_datetime(d['st']),
finish_time=ms_to_datetime(d['ft']),
queue_name=d['q'],
queue_name=d.get('q', '<unknown>'),
)
except Exception as e:
raise DeserializationError('unable to deserialize job result') from e

0 comments on commit 66ad5da

Please sign in to comment.