comparison development.ini @ 8262:66670aff96c5

celery: set default config values in code and remove them from the generated .ini It is hard to imagine any reason the user should change celery.imports . And if it ever should change, we want it controlled in code - not left stale in user controlled config files. Everybody sould just use .json and there is no reason anybody should specify that in the .ini ... and it will be the default in Celery 4.
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 18 Feb 2020 17:03:09 +0100
parents e539db6cc0da
children f450318e5ff9
comparison
equal deleted inserted replaced
8261:b1eee5119416 8262:66670aff96c5
253 use_celery = false 253 use_celery = false
254 254
255 ## Example: connect to the virtual host 'rabbitmqhost' on localhost as rabbitmq: 255 ## Example: connect to the virtual host 'rabbitmqhost' on localhost as rabbitmq:
256 broker.url = amqp://rabbitmq:qewqew@localhost:5672/rabbitmqhost 256 broker.url = amqp://rabbitmq:qewqew@localhost:5672/rabbitmqhost
257 257
258 celery.imports = kallithea.lib.celerylib.tasks
259 celery.accept.content = json
260 celery.result.backend = amqp:// 258 celery.result.backend = amqp://
261 celery.result.serializer = json
262 celery.task.serializer = json
263 259
264 #celery.send.task.error.emails = true 260 #celery.send.task.error.emails = true
265 #celery.amqp.task.result.expires = 18000 261 #celery.amqp.task.result.expires = 18000
266 262
267 celeryd.concurrency = 2 263 celeryd.concurrency = 2