v.0.0.6¶
Improvements:¶
The ability to run a program with
luna-config
andconfig
command line arguments was added. Whereluna-config
is an address of Configurator service, with (optional) limitation’s tag, andconfig
is a path to custom config file. If the command is called without additional arguments, the data is taken from the default config.alembic -x luna-config=http://127.0.0.1:5070/1 upgrade head alembic -x luna-config=http://127.0.0.1:5070/1 -x LUNA_HANDLERS_DB=TAG_1 upgrade head alembic -x config=devconfig.conf upgrade head alembic -x help upgrade headoutput for
alembic -x help upgrade head
commandusage: alembic [-h] [-x config=] [-x luna_config=] [-x LUNA_HANDLERS_DB=] [-x help] alembic [-x] optional argument: -x config = path to config -x luna-config = origin and api version of luna-configurator service for pulling setting from it (e.g. "http://127.0.0.1:5070/1") -x LUNA_HANDLERS_DB = tag for setting LUNA_HANDLERS_DB to pull from luna-configurator -x help Show this help message and exitThe policies and account_id indexes for handler table were dropped. A composite index on account_id and create_time columns was added.
Error handling on sending binary image with “image/jpeg” Content-Type and “extract_exif=1” /detector request parameter was fixed.
Storage policy was added. Store only needed objects - save your resources! See updated handler dev docs or REST API docs.
If service luna-events is disabled, the event url will be set as Null in output event.
Raw descriptor mimetypes on POST /handler/{handler_id}/events with application/json content type are now supported.
How to update from previous version:¶
To update from previous version simply replace folders luna_handlers, tests, docs, deploy and update dependencies from requirements.txt. Then run the commands:
alembic upgrade head