# HG changeset patch # User Mads Kiilerich # Date 2020-02-14 02:25:00 # Node ID f450318e5ff962d17d6201e32091a2c731aca6d6 # Parent 66670aff96c534f34da60b6cd75ef5b44267fca4 celery: change ini template to use sqlite for results 'amqp://' might be good - also for results, but seems to need additional non-trivial setup. And according to https://docs.celeryproject.org/en/3.0/whatsnew-4.0.html#features-removed-for-lack-of-funding it is deprecated. Kallithea only uses Celery results when repos are created or forked and user browsers are reloading pages to poll for completion. amqp seems like unnecessary complexity for that use case. Sqlite does however seem like a minimal but fine solution for the Kallithea use case in most setups. diff --git a/development.ini b/development.ini --- a/development.ini +++ b/development.ini @@ -255,7 +255,7 @@ use_celery = false ## Example: connect to the virtual host 'rabbitmqhost' on localhost as rabbitmq: broker.url = amqp://rabbitmq:qewqew@localhost:5672/rabbitmqhost -celery.result.backend = amqp:// +celery.result.backend = db+sqlite:///celery-results.db #celery.send.task.error.emails = true #celery.amqp.task.result.expires = 18000 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 @@ -361,7 +361,7 @@ use_celery = false <%text>## Example: connect to the virtual host 'rabbitmqhost' on localhost as rabbitmq: broker.url = amqp://rabbitmq:qewqew@localhost:5672/rabbitmqhost -celery.result.backend = amqp:// +celery.result.backend = db+sqlite:///celery-results.db #celery.send.task.error.emails = true #celery.amqp.task.result.expires = 18000