We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 40ae460 + 4a33ff4 commit 8ea5372Copy full SHA for 8ea5372
arq/worker.py
@@ -414,7 +414,7 @@ async def _read_stream_iteration(self) -> None:
414
Get ids of pending jobs from the stream and start those jobs, remove
415
any finished tasks from self.tasks.
416
"""
417
- count = self.max_jobs
+ count = self.max_jobs - self.job_counter
418
if self.burst and self.max_burst_jobs >= 0:
419
burst_jobs_remaining = self.max_burst_jobs - self._jobs_started()
420
if burst_jobs_remaining < 1:
0 commit comments