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

rest-hook subscription notification doesn't try indefinitely #6002

Open
mldedalus opened this issue Jun 12, 2024 · 0 comments
Open

rest-hook subscription notification doesn't try indefinitely #6002

mldedalus opened this issue Jun 12, 2024 · 0 comments

Comments

@mldedalus
Copy link

Describe the issue
We intend to use a rest-hook subscription in R4 (HAPI 7.0.2 using JPA) to notify when any resource of a given type is created/updated.
To do this, our subscription looks like this:

{ "resourceType": "Subscription", "status": "requested", "criteria": "[Organization]", "channel": { "type": "rest-hook", "endpoint": "http:https://fhir-subscription-handler.ci-hapistuff.svc:8080/notify", "payload": "application/json" } }
If that endpoint is down, it appears that HAPI tries for almost exactly 1 minute, before throwing a final failure exception and not trying anymore for that Notification.

Is there any way to get HAPI to try for longer, or indefinitely?
Having missing Notifications is a bit of a red line for our solution.

According to Smile CDR docs here "Subscriptions that fail to deliver to their specified channel will retry on error. By default, they will continue to retry indefinitely until they succeed"

Can we get the same behaviour in HAPI?

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

No branches or pull requests

1 participant