mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
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:
@@ -21,6 +21,7 @@ kestra:
|
||||
server:
|
||||
liveness:
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
micronaut:
|
||||
http:
|
||||
services:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -54,6 +54,7 @@ kestra:
|
||||
- "/api/v1/executions/webhook/"
|
||||
liveness:
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
service:
|
||||
purge:
|
||||
initial-delay: 1h
|
||||
|
||||
@@ -19,6 +19,7 @@ kestra:
|
||||
server:
|
||||
liveness:
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
service:
|
||||
purge:
|
||||
initial-delay: 1h
|
||||
|
||||
@@ -25,6 +25,7 @@ kestra:
|
||||
server:
|
||||
liveness:
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
service:
|
||||
purge:
|
||||
initial-delay: 1h
|
||||
|
||||
@@ -40,6 +40,7 @@ kestra:
|
||||
server:
|
||||
liveness:
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
service:
|
||||
purge:
|
||||
initial-delay: 1h
|
||||
|
||||
@@ -9,4 +9,5 @@ kestra:
|
||||
poll-switch-interval: 5s
|
||||
server:
|
||||
liveness:
|
||||
enabled: false
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
@@ -13,4 +13,5 @@ kestra:
|
||||
poll-switch-interval: 5s
|
||||
server:
|
||||
liveness:
|
||||
enabled: false
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
@@ -54,6 +54,7 @@ kestra:
|
||||
- "/api/v1/executions/webhook/"
|
||||
liveness:
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
service:
|
||||
purge:
|
||||
initial-delay: 1h
|
||||
|
||||
@@ -172,6 +172,7 @@ kestra:
|
||||
- "/api/v1/main/executions/webhook/"
|
||||
liveness:
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
service:
|
||||
purge:
|
||||
initial-delay: 1h
|
||||
|
||||
@@ -54,6 +54,7 @@ kestra:
|
||||
- "/api/v1/executions/webhook/"
|
||||
liveness:
|
||||
enabled: false
|
||||
termination-grace-period: 5s
|
||||
service:
|
||||
purge:
|
||||
initial-delay: 1h
|
||||
|
||||
Reference in New Issue
Block a user