dokploy
dokploy copied to clipboard
Implement heartbeat callback for database backups
What problem will this feature address?
Although we dokploy has notifications when a database backup succeeds or fails, it could be that dokploy's control panel is not working (and hence the backup does not run, and the notification is not sent!).
Describe the solution you'd like
In order to improve dokploy's observability, I think it would be very useful to allow to implement an 'onSuccess' callback for every database backup, that allows to configure either:
- A script that is called once the backup succeeds
- Calls an http endpoint
There are multiple uptime services that use the concept of a heartbeat: After an async operation succeeds, it's supposed to send a heartbeat (in the shape of a request to a specific URL). If the heartbeat is not received, then the uptime service would notify an admin to check what went wrong.
Describe alternatives you've considered
Additional context
No response
Will you send a PR to implement it?
No