I've got a long running builder that renders videos. Sometimes during the build I'll notice that it's incorrect and want to kill it, and this requires sending an HTTP request to the render server. Is there some signal or hook in the scons system that I can use to determine when scons is shutting down so that I can send a message to the server?
You can do something like this: (original code from SCons manpage) Put this in your SConstruct/SConscript
import atexit
def shutdown_my_server():
" do your stuff here "
pass
atexit.register(shutdown_my_server)