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

Implemented workflows reload endpoint #5732

Merged
merged 5 commits into from
Jul 12, 2024
Merged

Conversation

MariusVuscanNx
Copy link
Contributor

@MariusVuscanNx MariusVuscanNx commented Jul 9, 2024

This change is Reviewable

Also includes improvements suggested in the refresh PR (#5713) and during testing.

@MariusVuscanNx MariusVuscanNx marked this pull request as ready for review July 10, 2024 14:10
{
var message = context.Message;
var notification = new Elsa.Workflows.Runtime.Notifications.WorkflowDefinitionsReloaded(message.WorkflowDefinitionIds);
AmbientConsumerScope.IsWorkflowDefinitionEventsConsumer = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't we need a new field here to prevent race conditions?

Copy link
Member

Choose a reason for hiding this comment

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

Given the way AsyncLocal works, I don’t see how; each call will see a different instance of the AsyncLocal object.

…wDefinitionReload/RemoveReloadWorkflowTests.cs


Fix typo

Co-authored-by: raymonddenhaan <[email protected]>
@sfmskywalker sfmskywalker merged commit feb7da4 into patch/3.2.x Jul 12, 2024
6 checks passed
@sfmskywalker sfmskywalker deleted the feature/reload branch July 12, 2024 06:35
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.

3 participants