Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8cfb6044e7 | |||
| 9eb9b6b67f | |||
| 702b436622 |
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user