Skip to content

Commit

Permalink
connections: fix pipeline usage for exists command
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarshgupta137 committed Nov 29, 2022
1 parent 9ce2fd6 commit 5794784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arq/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async def enqueue_job(

async with self.pipeline(transaction=True) as pipe:
await pipe.watch(job_key)
if any(await asyncio.gather(pipe.exists(job_key), pipe.exists(result_key_prefix + job_id))):
if await pipe.exists(job_key, result_key_prefix + job_id):
await pipe.reset()
return None

Expand Down

0 comments on commit 5794784

Please sign in to comment.