Closed leesungbin closed 1 week ago
I want to confirm if I am misunderstanding the maxDuration
parameter.
In the documentation, it states, "maxDuration is the maximum amount of time allowed for a workflow in the backoff strategy." Based on this, I thought that maxDuration only affects the backoff process.
However, in the code, I noticed that opts.executionDeadline
is overridden by maxDurationDeadline
.
https://github.com/argoproj/argo-workflows/blob/9cacef302bca869da1700b72bede1afad0e9526d/workflow/controller/operator.go#L1054
Is this intentional?
If so, I don't think this is a bug.
If not, I believe some tests should also be updated. (ex, func TestPropagateMaxDurationProcess
in workflow/controller/operator_test.go
)
We may want to reconsider this later within the context of #10341, i.e. if pending and active time are split in two. The backoff maxDuration
may make more sense for the pending state / pendingTimeout
only, while activeDeadlineSeconds
may make more sense to only apply to the active state.
Pre-requisites
:latest
image tag (i.e.quay.io/argoproj/workflow-controller:latest
) and can confirm the issue still exists on:latest
. If not, I have explained why, in detail, in my description below.What happened/what did you expect to happen?
I expect that the activeDeadlineSeconds parameter should also apply to retrying workflow pod containers. However, it appears that the retrying container has a short deadline of approximately 1 minute.
Additionally, when I set the activeDeadlineSeconds at the template level, the deadline for the first workflow's wait container is set to 0001-01-01 00:00:00 +0000 UTC, while the second workflow's wait container has a deadline of about 1 minute.
Is this behavior intentional?
Below are the logs resulting from setting the workflow level activeDeadlineSeconds.
Version
latest
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
Logs from the workflow controller
Logs from in your workflow's wait container