Skip to content

Conversation

cdavernas
Copy link
Member

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:

  • Fixes the WorkflowInstanceController to ignore instances of unselected workflows

Fixes #527

…nces of unselected workflows

Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
@cdavernas cdavernas self-assigned this Jul 22, 2025
@cdavernas cdavernas added type: enhancement New feature or request priority: high Indicates a high priority issue weight: 1 An issue that has a very low development impact app: operator Concerns the Operator labels Jul 22, 2025
@cdavernas cdavernas requested a review from Copilot July 22, 2025 21:25
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the WorkflowInstanceController where the controller was not properly handling workflow instances that belong to unselected workflows. The fix ensures that when a workflow cannot be retrieved from the cache (indicating it was filtered out by selectors), the associated workflow instances are also ignored.

Key changes:

  • Improved the logic for determining if a workflow instance should be processed by the controller
  • Added explicit handling for cases where the associated workflow is not found in the cache

@cdavernas cdavernas merged commit 2f93d0d into main Jul 22, 2025
2 checks passed
@cdavernas cdavernas deleted the fix-operator-selectors branch July 22, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app: operator Concerns the Operator priority: high Indicates a high priority issue type: enhancement New feature or request weight: 1 An issue that has a very low development impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Operators claim unfiltered workflow instances when selectors are configured
1 participant