The main improvement in this release is the new capability to add your own custom Flask extensions when running drum server
. Note: this capability is not available when using the --production
flag (or PRODUCTION=1
environment variable). For a reference implementation, see the new example.
Added
- Add support for a new hook (
custom_flask.py
) in the model-dir to allow extending the Flask application when drum is running in server mode. - Add a new model template sample (
flask_extension_httpauth
) to illustrate a potential authentication use-case using the newcustom_flask.py
hook.
Changed
- Improve handling of SIGTERM to support cleaner shutdowns.
- Use
--init
flag when running docker containers to improve how signals are propigated to child processes.