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

SpringBoot - Add registered workflow and activity impl info to workers template #1986

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

tsurdilo
Copy link
Contributor

@tsurdilo tsurdilo commented Feb 12, 2024

Update to WorkersTemplate to expose registered workflow and activity class info per task queue.
Allows users to build custom actuator endpoints that display this.

Sample that uses this info to create a custom actuator endpoint temporalio/samples-java#576

Signed-off-by: Tihomir Surdilovic <tihomir@temporal.io>
@tsurdilo
Copy link
Contributor Author

Sample screenshot:

Screenshot 2024-02-11 at 7 30 23 PM

@tsurdilo tsurdilo changed the title add registered workflow and activity impl info to workers template Add registered workflow and activity impl info to workers template Feb 12, 2024
@tsurdilo tsurdilo changed the title Add registered workflow and activity impl info to workers template SpringBoot - Add registered workflow and activity impl info to workers template Feb 12, 2024
return this;
}

public List<String> getRegisteredActivityInfo() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think there is other information users may want us to expose in the future about activities or workflows other then their name?

Copy link
Contributor

Choose a reason for hiding this comment

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

May make sense to return a list of objects so we can add new fields if decided to expose more info.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok good point, will update

Signed-off-by: Tihomir Surdilovic <tihomir@temporal.io>
Signed-off-by: Tihomir Surdilovic <tihomir@temporal.io>
@tsurdilo
Copy link
Contributor Author

@Quinn-With-Two-Ns made updates, let me know if ok now

Copy link
Contributor

@Quinn-With-Two-Ns Quinn-With-Two-Ns left a comment

Choose a reason for hiding this comment

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

Can we mark this api as @Experimental

Signed-off-by: Tihomir Surdilovic <tihomir@temporal.io>
@tsurdilo
Copy link
Contributor Author

Added Experimental flag to getRegisteredInfo method

@tsurdilo tsurdilo merged commit 78e37a6 into temporalio:master Feb 20, 2024
6 checks passed
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.

2 participants