Skip to content

Fixed the WorkflowInstanceController not to claim instances of workflows explicitly assigned to other operators #526

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

Merged
merged 2 commits into from
Jul 22, 2025

Conversation

cdavernas
Copy link
Member

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:

  • Fixes the WorkflowInstanceController not to claim instances of workflows explicitly assigned to other operators

Fixes #525

…stances of workflows explicitly assigned to other operators

Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
@cdavernas cdavernas added this to the v1.0.0 milestone Jul 22, 2025
@cdavernas cdavernas self-assigned this Jul 22, 2025
@cdavernas cdavernas added the priority: high Indicates a high priority issue label Jul 22, 2025
@cdavernas cdavernas added 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 20:53
@cdavernas cdavernas removed this from the v1.0.0 milestone Jul 22, 2025
Copilot

This comment was marked as outdated.

… workflow instance is claimable

Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
@cdavernas cdavernas requested a review from Copilot July 22, 2025 21:01
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 the WorkflowInstanceController to prevent it from claiming workflow instances that are explicitly assigned to other operators. The fix introduces logic to check workflow-level operator assignments in addition to instance-level assignments.

Key changes:

  • Adds new interface IWorkflowController to expose monitored workflows
  • Implements operator assignment checking logic that considers both workflow instance and workflow level labels
  • Refactors claim/release logic to use centralized claimability checking

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
WorkflowInstanceController.cs Adds workflow controller dependency and implements claimability checking logic
WorkflowController.cs Implements IWorkflowController interface to expose workflows collection
IWorkflowController.cs New interface defining access to monitored workflows
IOperatorController.cs Minor documentation update for consistency
Program.cs Registers IWorkflowController service binding

@cdavernas cdavernas merged commit 44785ed into main Jul 22, 2025
2 checks passed
@cdavernas cdavernas deleted the fix-workflow-operator-routing branch July 22, 2025 21:03
@cdavernas cdavernas added type: bug Something isn't working type: fix and removed type: bug Something isn't working labels Jul 22, 2025
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: fix 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 are claiming instances of a workflow that is explicitly assigned to other operators
1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy