Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public DeleteControl execute() throws Exception {

// The cleanup is called also when explicit invocation is true, but the cleaner is not
// implemented
if (managedWorkflow.hasCleaner() || !explicitWorkflowInvocation) {
if (managedWorkflow.hasCleaner() && !explicitWorkflowInvocation) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

TBH, I miss the context here, but if I understand the comment above correctly it should be:

Suggested change
if (managedWorkflow.hasCleaner() && !explicitWorkflowInvocation) {
if (managedWorkflow.hasCleaner() || explicitWorkflowInvocation) {

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated the PR and also the comment. It's a bit more complicated than that.

workflowCleanupResult = managedWorkflow.cleanup(resource, context);
}

Expand Down
Loading