# nature settings ----------------------------------------
SERVER_PORT=8080

# This setting can rise up the performance for task process.
# If it's true, Nature will not save the save-task for converted,
# in this situation you should make sure that the converter your
# implemented would be idempotent
SWITCH_SAVE_DIRECTLY_FOR_ONE=true

# How long to keep the cached instance in memory, unit : second
CACHE_SAVED_TIME=90

# separator for `Instance.para`
SEPARATOR_INS_PARA=/
# separator for `Instance.key`
SEPARATOR_INS_KEY=|
# separator for `task_key`
SEPARATOR_TASK_KEY=|
# default separator for `Meta`
SEPARATOR_META=:
# default separator for `Meta.key`
SEPARATOR_META_KEY=/


# nature-db module settings--------------------------------------------------------------
# content length limited
INSTANCE_CONTENT_MAX_LENGTH=65535
INSTANCE_CONTEXT_MAX_LENGTH=65535
TASK_CONTENT_MAX_LENGTH=16777215

# retry module settings-----------------------------------------------
MAX_SLEEP=2000
# how long to take a unfinished task and give a retry
BASE_DELAY = 2
# the max tasks will be load for one retry
LOAD_SIZE = 100
# how long the finished task will be clean
CLEAN_DELAY = 1800

## common settings-----------------------------------------------------
QUERY_SIZE_LIMIT=1000

#DATABASE_URL=nature.sqlite
### the format is mysql://user:pwd@host/db
DATABASE_URL=mysql://root@localhost/nature

# value: Off,Error,Warn,Info,Debug,Trace
RUST_LOG=debug,actix_web=off,hyper=off
#RUST_LOG=debug,hyper=off

