Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Daemon step updated 'pod delete' while pod is running #8399

Merged
merged 6 commits into from
Apr 14, 2022

Conversation

sarabala1979
Copy link
Member

Fixes #TODO

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
@sarabala1979 sarabala1979 marked this pull request as draft April 14, 2022 17:32
@@ -18,7 +18,7 @@ func (woc *wfOperationCtx) queuePodsForCleanup() {
for _, obj := range objs {
pod := obj.(*apiv1.Pod)
nodeID := woc.nodeID(pod)
if !woc.execWf.Status.Nodes[nodeID].Fulfilled() {
if !woc.execWf.Status.Nodes[nodeID].Phase.Fulfilled() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not just Completed()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fulfilled will take care skipped and Omitted nodes also. Fulfilled is right one

// Fulfilled returns whether a phase is fulfilled, i.e. it completed execution or was skipped or omitted
func (phase NodePhase) Fulfilled() bool {
	return phase.Completed() || phase == NodeSkipped || phase == NodeOmitted
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strange they are inconsistent

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
@sarabala1979 sarabala1979 changed the title Daemon fix: Daemon step updated 'pod delete' while pod is running Apr 14, 2022
@sarabala1979 sarabala1979 marked this pull request as ready for review April 14, 2022 18:23
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
@sarabala1979
Copy link
Member Author

@alexec can you review this PR? once it is approved and merged I will start v3.3.2

@sarabala1979 sarabala1979 merged commit f467cc5 into argoproj:master Apr 14, 2022
@sarabala1979 sarabala1979 mentioned this pull request Apr 14, 2022
85 tasks
sarabala1979 added a commit that referenced this pull request Apr 18, 2022
* fix: Updating complated node status

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>

* fix: Daemon step updated 'pod delete' while pod is running

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>

* fix: update

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>

* fix: e2e

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants