diff --git a/rattail_fabric2/deploy/luigi/luigi.cfg.mako b/rattail_fabric2/deploy/luigi/luigi.cfg.mako index 8dd1ee1..d26040a 100644 --- a/rattail_fabric2/deploy/luigi/luigi.cfg.mako +++ b/rattail_fabric2/deploy/luigi/luigi.cfg.mako @@ -10,6 +10,7 @@ [core] +logging_conf_file = ${appdir}/luigi/logging.conf # Number of seconds to wait before timing out when making an API call. Defaults # to 10.0 @@ -26,6 +27,17 @@ rpc_retry_attempts = 10 # (occasional network issues seem to cause us to need more/longer retries) rpc_retry_wait = 60 +[retcode] +# cf. https://luigi.readthedocs.io/en/stable/configuration.html#retcode-config +# The following return codes are the recommended exit codes for Luigi +# They are in increasing level of severity (for most applications) +already_running=10 +missing_data=20 +not_run=25 +task_failed=30 +scheduling_error=35 +unhandled_exception=40 + [scheduler] state_path = ${appdir}/luigi/state.pickle % if db_connection: