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

[BUG] 3.3.0 RC5 UseTenants not support on Hangfire. Hangfire resume operation send tenantID is null always. #6262

Open
onerkaya opened this issue Jan 2, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@onerkaya
Copy link

onerkaya commented Jan 2, 2025

Hi ,

After updating from packet 3.2.1 to 3.3.0 RC5, the Hangfire call to the ResumeWorkflowJob.ExecuteAsync method fails because the tenantID is null when multi-tenancy is activated using elsa.UseTenants()

{"$type":"System.Collections.Generic.Dictionary`2[[System.String],[System.String]], mscorlib","FailedAt":"2025-01-02T12:34:13.2222493Z","ExceptionType":"System.InvalidOperationException","ExceptionMessage":"Workflow instance a3e2c2ead02a7752 not found.","ExceptionDetails":"System.InvalidOperationException: Workflow instance a3e2c2ead02a7752 not found.\r\n at Elsa.Workflows.Runtime.LocalWorkflowClient.GetWorkflowInstanceAsync(CancellationToken cancellationToken)\r\n at Elsa.Workflows.Runtime.LocalWorkflowClient.RunInstanceAsync(RunWorkflowInstanceRequest request, CancellationToken cancellationToken)\r\n at Elsa.Hangfire.Jobs.ResumeWorkflowJob.ExecuteAsync(String name, ScheduleExistingWorkflowInstanceRequest request, CancellationToken cancellationToken)\r\n at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)\r\n at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)\r\n","ServerId":"onerkaya:59148:b36274ee-c99f-4568-b918-bfb4c84998dc"}

image

@onerkaya onerkaya added the bug Something isn't working label Jan 2, 2025
@sfmskywalker sfmskywalker self-assigned this Jan 2, 2025
@sfmskywalker sfmskywalker moved this to Triage in ELSA 3 Jan 2, 2025
@sfmskywalker sfmskywalker added this to the Elsa 3.3 milestone Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triage
Development

No branches or pull requests

2 participants