在 v1.1.12 中,使用无根 Podman 设置时,任务重试卡在 RETRYING 状态中(在 v0.22.10 中可正常运行)
作者: SnazzyNivesh522创建于 2026年1月8日更新于 2026年9月30日
标签area/backendgood first issue
流程 YAML
id: retry
namespace: test
description: This flow retries 4 times and succeeds on the 5th attempt
tasks:
- id: failed
type: io.kestra.plugin.scripts.shell.Commands
taskRunner:
type: io.kestra.plugin.scripts.runner.Docker.Docker # Also tried io.kestra.plugin.core.runner.Process
commands:
- 'if [ "{{taskrun.attemptsCount}}" -eq 4 ]; then exit 0; else exit 1; fi'
retry:
type: constant
interval: PT2S # Also tried PT0.25S
maxAttempts: 5
warningOnRetry: true
behavior: RETRY_FAILED_TASK # Also tried without this
errors:
- id: never_happen
type: io.kestra.plugin.core.debug.Return
format: Never happened {{task.id}}compose YAML
volumes:
kestra-postgres-data:
driver: local
kestra-data:
driver: local
kestra-wd:
driver: local
services:
postgres:
image: "postgres:16.3"
container_name: kestra-postgres
hostname: kestra-postgres
volumes:
- kestra-postgres-data:/var/lib/PostgreSQL/data
environment:
POSTGRES_DB: kestra
POSTGRES_USER: kestra
POSTGRES_PASSWORD: Kestra0!8#4
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 30s
timeout: 10s
retries: 10
restart: unless-stopped
mem_limit: "1g"
webserver:
image: kestra/kestra:latest-lts
pull_policy: always
container_name: kestra-webserver
hostname: kestra-webserver
user: "1000:1000"
security_opt:
- label:disable
env_file:
- .env_encoded
command: server webserver --config /etc/config/application.yml
volumes:
- kestra-data:/app/storage:Z
- ${XDG_RUNTIME_DIR}/podman/podman.sock:/var/run/Docker.sock:Z
- kestra-wd:/tmp/kestra-wd:Z
- ./application.yml:/etc/config/application.yml:ro,Z
environment:
JAVA_OPTS: "-Xms512m -Xmx1g -Duser.timezone=Asia/Kolkata"
…内容来源: kestra-io/kestra