Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 6, 2023
1 parent 947b421 commit 2af4e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharded_queue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async def process(self, tube: Tube, limit: Optional[int] = None) -> int:
batch_size = self.settings.recurrent_tasks_limit
else:
batch_size = instance.batch_size()
if not batch_size:
if batch_size is None:
batch_size = self.settings.batch_size
batch_size = min(limit, batch_size)
processed = False
Expand Down

0 comments on commit 2af4e9d

Please sign in to comment.