Skip to content

Conversation

@Sverre-W
Copy link
Contributor

@Sverre-W Sverre-W commented Nov 7, 2025

This PR fixes #7034. By passing in the tenant headers when executing Cancel to a suspended workflow with the default cancellation dispatcher.


This change is Reviewable

Copy link
Contributor

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 adds tenant header support to BackgroundWorkflowCancellationDispatcher to fix issue #7034, ensuring that tenant context is properly propagated when canceling suspended workflows using the default cancellation dispatcher.

Key Changes:

  • Added ITenantAccessor dependency injection to BackgroundWorkflowCancellationDispatcher
  • Added imports for tenant-related namespaces (Elsa.Common.Multitenancy and Elsa.Tenants.Mediator)
  • Implemented CreateHeaders() method to generate tenant headers from the current tenant context

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.

Workflow Cancellation not working in Elsa Studio

1 participant