fix(tests): lower termination grace period

If a test mis-behave, for ex starting an execution but not terminating it, as the default termination grace period is 5mn it can take very long time to wait for post-test terminaison.
Switching to a termination grace period of 5s may help.

I also detect that the ExecutionControllerRunner test when launching the test suite, would not properly kill the `sleep-long` flow so waiting for it to complete, or the termination grace period. When a test that use this flow is launched separatly it works properly. As a safety net I reduce the sleep from 5mn to 30s.
This commit is contained in:
Loïc Mathieu
2025-11-18 11:45:45 +01:00
parent d6ecbadee1
commit 1d1a065833
12 changed files with 15 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ kestra:
server:
liveness:
enabled: false
termination-grace-period: 5s
micronaut:
http:
services:

View File

@@ -58,7 +58,8 @@ kestra:
purge:
initial-delay: 1h
fixed-delay: 1d
retention: 30d
retention: 30dPeriod
termination-grace-period: 5s
anonymous-usage-report:
enabled: false

View File

@@ -4,7 +4,7 @@ namespace: io.kestra.tests
tasks:
- id: sleep-long
type: io.kestra.plugin.core.flow.Sleep
duration: PT300S
duration: PT30S
afterExecution:
- id: output

View File

@@ -54,6 +54,7 @@ kestra:
- "/api/v1/executions/webhook/"
liveness:
enabled: false
termination-grace-period: 5s
service:
purge:
initial-delay: 1h

View File

@@ -19,6 +19,7 @@ kestra:
server:
liveness:
enabled: false
termination-grace-period: 5s
service:
purge:
initial-delay: 1h

View File

@@ -25,6 +25,7 @@ kestra:
server:
liveness:
enabled: false
termination-grace-period: 5s
service:
purge:
initial-delay: 1h

View File

@@ -40,6 +40,7 @@ kestra:
server:
liveness:
enabled: false
termination-grace-period: 5s
service:
purge:
initial-delay: 1h

View File

@@ -9,4 +9,5 @@ kestra:
poll-switch-interval: 5s
server:
liveness:
enabled: false
enabled: false
termination-grace-period: 5s

View File

@@ -13,4 +13,5 @@ kestra:
poll-switch-interval: 5s
server:
liveness:
enabled: false
enabled: false
termination-grace-period: 5s

View File

@@ -54,6 +54,7 @@ kestra:
- "/api/v1/executions/webhook/"
liveness:
enabled: false
termination-grace-period: 5s
service:
purge:
initial-delay: 1h

View File

@@ -172,6 +172,7 @@ kestra:
- "/api/v1/main/executions/webhook/"
liveness:
enabled: false
termination-grace-period: 5s
service:
purge:
initial-delay: 1h

View File

@@ -54,6 +54,7 @@ kestra:
- "/api/v1/executions/webhook/"
liveness:
enabled: false
termination-grace-period: 5s
service:
purge:
initial-delay: 1h