Compare commits

...

2 Commits

Author SHA1 Message Date
yyhuni
e076ea6849 fix:ephemeral server启动超时导致任务启动失败 2025-12-21 19:35:54 +08:00
github-actions[bot]
abdc580a7a chore: bump version to v1.0.27 2025-12-21 01:58:59 +00:00
2 changed files with 5 additions and 3 deletions

View File

@@ -1 +1 @@
v1.0.26
v1.0.27

View File

@@ -242,12 +242,14 @@ class TaskDistributor:
# 环境变量SERVER_URL + IS_LOCAL其他配置容器启动时从配置中心获取
# IS_LOCAL 用于 Worker 向配置中心声明身份,决定返回的数据库地址
# Prefect 本地模式配置:禁用 API server 和事件系统
# Prefect 本地模式配置:禁用 API server 和 ephemeral server
is_local_str = "true" if worker.is_local else "false"
env_vars = [
f"-e SERVER_URL={shlex.quote(server_url)}",
f"-e IS_LOCAL={is_local_str}",
"-e PREFECT_API_URL=", # 禁用 API server
"-e PREFECT_API_URL=", # 不连接外部 API server
"-e PREFECT_SERVER_EPHEMERAL_ENABLED=false", # 禁用 ephemeral server
"-e PREFECT_SERVER_EPHEMERAL_STARTUP_TIMEOUT_SECONDS=360", # 兜底:增加超时时间
"-e PREFECT_LOGGING_EXTRA_LOGGERS=", # 禁用 Prefect 的额外内部日志器
]