I use the heroku scheduler add-on to do a daily database scan and it works like a charm, yay
But it never kills itself. When I run heroku ps -a mysuperapp
I can see that the dyno is still up even though its job has been completed a few hours ago.
That is not too surprising since nothing in my code tells the dyno "I'm done". But I don't see any doc explaining how to say "I'm done".
This one answer suggests that
After finishing the work, dyno is killed
automagically, but that doesn't seem to happen in my case.
TLDR;
How can I notify the one-off dyno created by heroku scheduler that its job is done and it can kill itself?