Skip to content

Commit

Permalink
fix: edge case in py312 for semaphore lock (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala authored Feb 28, 2024
1 parent 26cb5c7 commit 027e5a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions async_batcher/batcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ async def run(self):
self._running_batches[task_id] = asyncio.get_event_loop().create_task(
self._concurrent_batch_run(task_id, batch)
)
await asyncio.sleep(0)
task_id += 1
started_at = None
except asyncio.TimeoutError:
Expand Down

0 comments on commit 027e5a4

Please sign in to comment.