diff --git a/development.ini b/development.ini --- a/development.ini +++ b/development.ini @@ -253,18 +253,20 @@ ssh_enabled = false ## Note: Celery doesn't support Windows. use_celery = false +## Celery config settings from https://docs.celeryproject.org/en/4.4.0/userguide/configuration.html prefixed with 'celery.'. + ## Example: use the message queue on the local virtual host 'kallitheavhost' as the RabbitMQ user 'kallithea': -broker.url = amqp://kallithea:thepassword@localhost:5672/kallitheavhost +celery.broker_url = amqp://kallithea:thepassword@localhost:5672/kallitheavhost celery.result.backend = db+sqlite:///celery-results.db #celery.amqp.task.result.expires = 18000 -celeryd.concurrency = 2 -celeryd.max.tasks.per.child = 1 +celery.worker_concurrency = 2 +celery.worker_max_tasks_per_child = 1 ## If true, tasks will never be sent to the queue, but executed locally instead. -celery.always.eager = false +celery.task_always_eager = false #################################### ### BEAKER CACHE #### diff --git a/kallithea/lib/paster_commands/template.ini.mako b/kallithea/lib/paster_commands/template.ini.mako --- a/kallithea/lib/paster_commands/template.ini.mako +++ b/kallithea/lib/paster_commands/template.ini.mako @@ -359,18 +359,20 @@ ssh_locale = ${ssh_locale} <%text>## Note: Celery doesn't support Windows. use_celery = false +<%text>## Celery config settings from https://docs.celeryproject.org/en/4.4.0/userguide/configuration.html prefixed with 'celery.'. + <%text>## Example: use the message queue on the local virtual host 'kallitheavhost' as the RabbitMQ user 'kallithea': -broker.url = amqp://kallithea:thepassword@localhost:5672/kallitheavhost +celery.broker_url = amqp://kallithea:thepassword@localhost:5672/kallitheavhost celery.result.backend = db+sqlite:///celery-results.db #celery.amqp.task.result.expires = 18000 -celeryd.concurrency = 2 -celeryd.max.tasks.per.child = 1 +celery.worker_concurrency = 2 +celery.worker_max_tasks_per_child = 1 <%text>## If true, tasks will never be sent to the queue, but executed locally instead. -celery.always.eager = false +celery.task_always_eager = false <%text>#################################### <%text>### BEAKER CACHE ####