ha'ha
This commit is contained in:
@@ -141,7 +141,8 @@ def _list_tasks_by_account(account: BossAccount, task_status: Optional[TaskStatu
|
||||
"""
|
||||
items_by_task_id = {}
|
||||
|
||||
memory_limit = max(limit * 3, 100)
|
||||
# limit=None 用于分页场景下先取全量,再切片;此处给内存任务查询一个足够大的上限
|
||||
memory_limit = 10000 if limit is None else max(limit * 3, 100)
|
||||
memory_tasks = task_dispatcher.list_tasks(worker_id=account.worker_id, status=task_status, limit=memory_limit)
|
||||
for t in memory_tasks:
|
||||
if t.account_name != account.browser_name:
|
||||
|
||||
Reference in New Issue
Block a user