Skip to content

Commit 261b4b5

Browse files
committed
quick follow for #2940: skip max queue limit check if limit is 0
1 parent 1dc966d commit 261b4b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/btrixcloud/crawlconfigs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ async def check_if_too_many_waiting_crawls(self, org: Organization):
12281228
"""if max concurrent crawls are set, limit number of queued crawls to X concurrent limit
12291229
return 429 if at limit"""
12301230
max_concur = org.quotas.maxConcurrentCrawls
1231-
if not max_concur:
1231+
if not max_concur or not self.crawl_queue_limit_scale:
12321232
return
12331233

12341234
num_waiting = await self.crawls.count_documents(

0 commit comments

Comments
 (0)