1.4 KiB
1.4 KiB
Unit
- If work dir not defined - temporary directory will be created and removed after execution for each request automatically.
Schema:
command
(required, string) - command to execute (will be executed in a shell)interval
(optional, interval) - interval between attemptstimeout
(optional, interval) - maximum execution timeout (enabled only for bin mode and only if positive)graceful_timeout
(optional, interval) - maximum execution timeout after which SIGINT will be sent (enabled only for bin mode and only if positive). Ie: how long to let command react on SIGTERM signal.shell
(optional, string) - shell to execute command in bin mode (default - /bin/sh)environment
(optional, map string=>string) - custom environment for executable (in addition to system)max_request
(optional, integer) - maximum HTTP body size (enabled if positive)attempts
(optional, integer) - maximum number of attemptsworkers
(optional, integer) - concurrency level - number of parallel requestsmode
(optional, string) - execution mode:bin
orcgi
workdir
(optional, string) - working directory for the worker. if empty - temporary one will be generated automatically.authorization
(optional, Authorization) - request authorizationcron
(optional,Cron) - scheduled requestsprivate
(optional, bool) - do not expose over API, could be used for cron-only jobs