8000 Fix infinitely waiting Alterations Workflow by sfmskywalker · Pull Request #6561 · elsa-workflows/elsa-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix infinitely waiting Alterations Workflow #6561

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 5 commits into from
Apr 5, 2025

Conversation

sfmskywalker
Copy link
Member
@sfmskywalker sfmskywalker commented Apr 4, 2025

Replaced workflow dispatch logic with BookmarkQueue and StimulusHasher for triggering workflows. This fixes the issue where the Alterations workflow would signal completion while a later step awaits a completion bookmark. The Bookmark Queue now handles this.


This change is Reviewable

Moved `StringExtensions` to a common module for reuse. Updated tenant-related logic to utilize null-safe string extensions, enhancing consistency and simplifying nullability handling across the codebase.
Modified the default value of StrictMode to `false` to enable the original flexible behavior. Developers can opt into strict mode by explicitly setting it to `true`. This change aims to enhance backward compatibility and minimize unexpected strict conversions.
Retrieve the current tenant ID if available using ITenantAccessor and assign it to the TenantId property. This ensures proper handling of multi-tenancy scenarios in the database context initialization.
DbContext pooling is turned off to prevent potential issues with shared context instances. Manual OpenTelemetry instrumentation is disabled to rely on automatic instrumentation instead. Strict mode is also disabled to allow more flexibility in object conversion.
Replaced workflow dispatch logic with BookmarkQueue and StimulusHasher for triggering workflows. This fixes the issue where the Alterations workflow would signal completion while a later step awaits a completion bookmark. The Bookmark Queue now handles this.
@sfmskywalker sfmskywalker requested a review from Copilot April 4, 2025 15:22
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.

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

src/modules/Elsa.Alterations/Services/DefaultAlterationPlanScheduler.cs:45

  • The throw statement no longer specifies an exception type. Please revert to using 'new Exception(...)' or explicitly indicate the intended exception type.
throw new($("Workflow definition with ID '{definitionId}' not found");

@sfmskywalker sfmskywalker merged commit e2288d0 into rc/3.4.0 Apr 5, 2025
4 of 5 checks passed
@sfmskywalker sfmskywalker deleted the bug/infinitely-pending-alteration-workflows branch April 5, 2025 08:37
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.

CLR provided workflow is populated inconsistently between 3.3.5 and 3.4.0-rc1
1 participant
0