This is a minor release introducing a few convenience features for the server configuration and a some improvements to the working of the plugin manager.
- Ensure changing an option for only a step of the pipeline will not cause the other steps to also be re-triggered
(Unless there is some change in the incoming input from a changed step) - Added locks to API to avoid loading/using models while plugin_manager is working.
plugin_manager
will try to reinstall failed packages 3 times with an interval before failing- Added capability to load both MOST or LAST model used at server start (Fixes #42)
LOAD_ON_START
can now be set to eithermost
orlast
to load the most used or the last used model at server start.
Setting it totrue
will default tomost
with a deprecation warning. - Added 2 environment variables to control server update behavior:
OCT_VERSION
= ([current_number]/latest
) - The version to install/update to default to the version of the downloaded release.
If set tolatest
the server will attempt to update to the latest version.
Can be set to any number of version available on PyPI https://pypi.org/project/django-ocr_translate/#historyOCT_AUTOUPDATE
= ([false]/true
) - If set totrue
the server will attempt to upgrade the version at every start
to the configured value ofOCT_VERSION
(default is release version).