Task retry stuck in RETRYING state with rootless Podman setup in v1.1.12 (works in v0.22.10)
Author: SnazzyNivesh522Created Jan 8, 2026Updated Sep 30, 2026
Labelsarea/backendgood first issue
Describe the issue
Summary
When running a simple flow with a retry-enabled shell task, the execution gets stuck in the RETRYING state after the first failure. No further retry attempts are processed, and the flow does not progress or fail completely. This occurs in Kestra v1.1.12 with a rootless Podman setup. The same flow and setup works as expected in v0.22.10 (retries 4 times and succeeds on the 5th attempt).
This appears to be a regression or incompatibility introduced in newer versions, potentially related to changes in the worker/executor queue handling or the Process/Docker task runners in rootless environments.
Steps to Reproduce
- Set up Kestra using the provided
compose.yamlandapplication.yml(rootless Podman, mounting${XDG_RUNTIME_DIR}/podman/podman.sockas/var/run/docker.sock). - Create the flow using the provided
flow.yaml. - Execute the flow .
- Observe the execution: The task fails once, enters
RETRYING, but no further attempts occur. The UI shows the state as stuck, with no additional logs for retries.
Flow 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_URL: http://localhost:8080/
ports:
- "3000:8080"
- "8081:8081"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
mem_limit: 1g
stop_grace_period: 60s
scheduler:
image: kestra/kestra:latest-lts
container_name: kestra-scheduler
hostname: kestra-scheduler
user: "1000:1000"
security_opt:
- label:disable
pull_policy: always
env_file:
- .env_encoded
command: server scheduler --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: "-Xms256m -Xmx512m -Duser.timezone=Asia/Kolkata"
ports:
- "8082:8081"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
mem_limit: "512m"
stop_grace_period: 60s
executor:
image: kestra/kestra:latest-lts
container_name: kestra-executor
hostname: kestra-executor
user: "1000:1000"
security_opt:
- label:disable
pull_policy: always
env_file:
- .env_encoded
command: server executor --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: "-Xms256m -Xmx512m -Duser.timezone=Asia/Kolkata"
ports:
- "8083:8081"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
mem_limit: "512m"
stop_grace_period: 60s
worker_1:
image: kestra/kestra:latest-lts
container_name: kestra-worker_1
hostname: kestra-worker_1
user: "1000:1000"
security_opt:
- label:disable
pull_policy: always
env_file:
- .env_encoded
command: server worker --config /etc/config/application.yml --thread=8
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 -Xmx1024m -Duser.timezone=Asia/Kolkata"
ports:
- "8084:8081"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
mem_limit: 1g
stop_grace_period: 60s
worker_2:
image: kestra/kestra:latest-lts
container_name: kestra-worker_2
hostname: kestra-worker_2
user: "1000:1000"
security_opt:
- label:disable
pull_policy: always
env_file:
- .env_encoded
command: server worker --config /etc/config/application.yml --thread=8
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 -Xmx1024m -Duser.timezone=Asia/Kolkata"
ports:
- "8085:8081"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
mem_limit: 1g
stop_grace_period: 60sApplication YAML
datasources:
postgres:
url: jdbc:postgresql://postgres:5432/kestra
driver-class-name: org.postgresql.Driver
username: kestra
password: Kestra0!8#4
maximum-pool-size: 20
minimum-idle: 10
kestra:
url: "http://10.11.12.2:3000/"
webserver:
url: "http://10.11.12.2:3000/"
environment:
name: Production
color: "#FCB37C"
tutorial-flows:
enabled: false
anonymous-usage-report:
enabled: false
server:
basic-auth:
username: [email protected]
password: Kestra0!8#4
liveness:
enabled: true
interval: 5s
timeout: 45s
initialDelay: 45s
heartbeatInterval: 3s
service:
purge:
initial-delay: 1h
fixed-delay: 1d
retention: 7d
jdbc:
queues:
min-poll-interval: 25ms
max-poll-interval: 500ms
poll-switch-interval: 60s
cleaner:
initial-delay: 1h
fixed-delay: 1h
retention: 7d
types:
- type: io.kestra.core.models.executions.LogEntry
retention: 1h
- type: io.kestra.core.models.executions.MetricEntry
retention: 1h
queue:
type: postgres
repository:
type: postgres
storage:
type: local
local:
basePath: "/app/storage"
tasks:
tmpDir:
path: "/tmp/kestra-wd/tmp"
encryption:
secretKey: +WhaqaU5fbCQyxWPc2ItrRlF+8Xd9Rxztau7eai17mI=
variables:
env-vars-prefix: "ENV_"
local-files:
allowed-paths:
- /scripts
plugins:
configurations:
- type: io.kestra.plugin.core.trigger.Schedule
values:
recoverMissedSchedules: LAST
- type: io.kestra
values:
retry:
type: constant
maxAttempts: 3
interval: PT5SWhat Was Tried
- Original: Process taskRunner – stuck.
- Switched to
io.kestra.plugin.scripts.runner.docker.Docker– still stuck. - Increased retry interval to PT2S – no change.
- Added
behavior: RETRY_FAILED_TASK– no change. - Confirmed works in v0.22.10 with identical setup/flow.
- Ran minimal non-retry flow – works fine (issue isolated to retries).
Expected Behavior
After failure, the task should retry up to 5 attempts (failing 4 times, succeeding on 5th), as in v0.22.10.
Environment
- Kestra Version: 1.1.12 (latest-lts)
- Container Runtime: Podman (rootless mode, user: "1000:1000", security_opt: - label:disable)
- Database: PostgreSQL 16.3
- OS: AlmaLinux 9.7 (Moss Jungle Cat)
Source: kestra-io/kestra