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

Refactored handling/updating of the ActivityRegistry #5468

Merged
merged 18 commits into from
Jun 7, 2024

Conversation

raymonddenhaan
Copy link
Contributor

@raymonddenhaan raymonddenhaan commented May 30, 2024

Refactored handling/updating of the ActivityRegistry

  • Complete refresh of the registry is done by building a new dictionary, then swapping it. Instead of clearing the working version.
  • Creation/Publishing/Retracting/Deleting of a workflow only leads to a change to that specific workflow in the registry instead of recreating the registry from scratch
  • Added a failover that on a mis in the registry the entire registry is going to be refreshed.

This change is Reviewable

@raymonddenhaan raymonddenhaan force-pushed the enhancement/5373_publish branch 2 times, most recently from 2d95ca3 to 23d27d4 Compare May 31, 2024 06:53
@raymonddenhaan raymonddenhaan changed the title Enhancement/5373 publish Refactored handling/updating of the ActivityRegistry May 31, 2024
@raymonddenhaan
Copy link
Contributor Author

closes #5464

Copy link
Member

@sfmskywalker sfmskywalker left a comment

Choose a reason for hiding this comment

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

In general, looking good. Just a small request that'll make it tight.

Updated event handling to only update activity registry for workflows marked as usable as activity
This commit removes unnecessary calls related to populating activity registry and reinitializing workflow definitions.
Added Refreshing of registry on miss when searching
Fixed handling of UsableAsActivity property on definitions
Fixed updating the ActivityRegistry when workflows get updated due to the `auto update consuming workflows` option
raymonddenhaan and others added 8 commits June 7, 2024 13:45
Improved logging
Added missing comments
This commit changes the reference to the logger instance in the DefaultTriggerScheduler class. It corrects the reference from a private instance to the correct instance 'logger'. Moreover, the string formatting of the second logger warning message has been updated for standardization.
@raymonddenhaan raymonddenhaan merged commit c0ee30b into main Jun 7, 2024
7 checks passed
@raymonddenhaan raymonddenhaan deleted the enhancement/5373_publish branch June 7, 2024 12:01
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.

[ENH] Increase stability and performance of publishing workflow definition
2 participants