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

feature request: Webhook to notify on status #622

Closed
julienlau opened this issue Aug 8, 2023 · 3 comments
Closed

feature request: Webhook to notify on status #622

julienlau opened this issue Aug 8, 2023 · 3 comments

Comments

@julienlau
Copy link

Hi,

It would be a nice feature if in addition to the REST endpoints there are new webhooks to notify on status change of :

  • session
  • batch
  • statement
    So that users could be notified on session available without any polling strategy.

It could be made using postgres trigger on state ?

@julienlau
Copy link
Author

This may be implemented using postgres LISTEN / NOTIFY ?

In addition, I would suggest that rather than constantly polling postgres for new statements using SELECT, it may be appropriate to also use LISTEN / NOTIFY ?

NB: I never used this myself, but I was very surprised to learn it existed in Postgres !
https://www.postgresql.org/docs/current/sql-notify.html

@julienlau
Copy link
Author

NB this feature is not implemented in H2 from what I know:
h2database/h2database#2761

@Minutis
Copy link
Member

Minutis commented Oct 4, 2024

The feature itself sounds like a nice feature to add per se. But such notifications should probably not be implemented via storage backend. And instead the lighter should handle such events in some kind of fashion. We are open for contribution but this does not seem like a feature that would be implemented by us anytime soon.

@Minutis Minutis closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
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

2 participants