Settings

The backend by default looks for an .env file in ${HOME}/.cvexplore folder, if certain values need to be overwritten you can do it either there or pass them directly as environment variables.

The following config variables are the configuration settings for the backend:

CELERY_REDIS_URL : str = 'redis://redis:6379/'

Url to be used by the backend for contacting redis.

CELERY_REDIS_BROKER_DB : int = 5

The redis database to use by the broker.

CELERY_REDIS_BACKEND_DB : int = 6

The redis database to use by the backend to store the results of the tasks in.

CELERY_TASK_FAILED_ERROR_CODE : int = 1337

Code to set in the task result if a task fails.

CELERY_KEEP_TASK_RESULT : int = 7

The amount of days to keep the task results in the database.

CELERY_TASK_TIME_LIMIT : int = 900

The time limit that is set for a task as a limit

CELERY_RESULT_EXPIRES : int = 300

The amount of seconds that the results from the tasks (if ignore_result=False is set in the task decorator) will stay in the Redis database.


Last update: Aug 11, 2024