What's the best way to handle a restart/redeploy/remove in Python?

VVictorsitou4/14/2023
Basically what I want to do is to save certain data in my DB once the deployment is restarted/redeployed/deleted. So what would be the best way to handle that?

Project id: 76c5996c-90fb-4227-8874-9e31865b416a
Bbrody4/14/2023
id say a webhook would be the best way to go about that
VVictorsitou4/14/2023
is there any documentation about it?
VVictorsitou4/14/2023
hmm, I'll see how I can integrate that into my app
VVictorsitou4/14/2023
thanks!
Bbrody4/14/2023
no problem!