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

Add callback/notification #5

Merged
merged 3 commits into from
Dec 17, 2024
Merged

Add callback/notification #5

merged 3 commits into from
Dec 17, 2024

Conversation

rnc
Copy link
Contributor

@rnc rnc commented Dec 13, 2024

No description provided.

@rnc rnc marked this pull request as ready for review December 17, 2024 11:45
@rnc rnc merged commit d5cdf42 into project-ncl:main Dec 17, 2024
2 checks passed
try {
Request notificationCallback = new Request(
Request.Method.PUT,
new URI(StringUtils.appendIfMissing(config.selfBaseUrl(), "/") + "internal/completed"),
Copy link

Choose a reason for hiding this comment

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

It seems the "internal/completed" REST api calls the Driver's "completed()" method which calls the "internal/completed" endpoint again... would this be an infinite loop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry I missed this. The build endpoint takes a callback (to call back to PNC). That callback is embedded into the pipeline which is then passed to the PipelineNotification so the driver completed method should be instead calling the very first callback, not the internal endpoint.

@rnc rnc deleted the NCL8957 branch December 18, 2024 09:24
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