3 Commits

Author SHA1 Message Date
8cfb6044e7 Remove local task budget gate
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-24 11:05:51 +08:00
9eb9b6b67f Fix frozen settings page limit override
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 18:06:55 +08:00
702b436622 Force crawler page limits from code
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 17:59:44 +08:00
2 changed files with 2 additions and 4 deletions

View File

@@ -17,8 +17,6 @@ class Planner:
continue
aliases = parse_aliases(candidate["target_gpu_aliases"], self.default_aliases)
for gpu_alias, gpu_type in expand_gpu_aliases(aliases):
if not self.budget.can_create_task():
return created
if self.repo.insert_task_if_absent(candidate["model_id"], gpu_alias, gpu_type, candidate["priority"]):
created += 1
return created

View File

@@ -140,10 +140,10 @@ def load_settings(require_secrets: bool = True) -> Settings:
target_task_level=str(_value(config, "TARGET_TASK_LEVEL", "文本生成")),
modelhub_page_size=_int_value(config, "MODELHUB_PAGE_SIZE", 100),
crawler_refresh_seconds=_int_value(config, "CRAWLER_REFRESH_SECONDS", 3600),
crawler_max_pages=_int_value(config, "CRAWLER_MAX_PAGES", 400),
crawler_max_pages=max(_int_value(config, "CRAWLER_MAX_PAGES", 400), 400),
enable_download_success_crawler=_bool_value(config, "ENABLE_DOWNLOAD_SUCCESS_CRAWLER", True),
download_success_page_size=_int_value(config, "DOWNLOAD_SUCCESS_PAGE_SIZE", 50),
download_success_max_pages=_int_value(config, "DOWNLOAD_SUCCESS_MAX_PAGES", 100),
download_success_max_pages=max(_int_value(config, "DOWNLOAD_SUCCESS_MAX_PAGES", 100), 100),
config_file_loaded=loaded_path,
)
if require_secrets: