Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Chen authored and Rachel Chen committed Nov 5, 2024
1 parent b8a94db commit e560dca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snuba/manual_jobs/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def _get_job_types_multi(job_ids_keys: Sequence[str]) -> List[str]:


def _get_job_status_multi(job_ids_keys: Sequence[str]) -> List[JobStatus]:
if len(job_ids_keys) == 0:
return []
return [
redis_status.decode() if redis_status is not None else JobStatus.NOT_STARTED
for redis_status in _redis_client.mget(job_ids_keys)
Expand Down

0 comments on commit e560dca

Please sign in to comment.