Skip to content

Commit

Permalink
fix: ignoring the deserialize result error
Browse files Browse the repository at this point in the history
  • Loading branch information
antonko committed Mar 30, 2024
1 parent 997a4f8 commit 4535aca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/src/services/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ async def fetch_job_info(
if status == arq.jobs.JobStatus.complete:
complete_key: str = arq.constants.result_key_prefix + key_id_without_prefix
redis_raw = await redis.get(complete_key)
job_result: arq.jobs.JobResult = arq.jobs.deserialize_result(redis_raw)
try:
job_result: arq.jobs.JobResult = arq.jobs.deserialize_result(redis_raw)
except Exception as e:
self.logger.error(f"Error deserializing job result: {e}")
return None

job_schema = Job(
id=key_id_without_prefix,
Expand Down

0 comments on commit 4535aca

Please sign in to comment.