diff --git a/roles/bodhi2/base/templates/celeryconfig.py.j2 b/roles/bodhi2/base/templates/celeryconfig.py.j2 index 4d000496b4..d4c57d64cd 100644 --- a/roles/bodhi2/base/templates/celeryconfig.py.j2 +++ b/roles/bodhi2/base/templates/celeryconfig.py.j2 @@ -37,9 +37,11 @@ broker_transport_options = { # Where the tasks are defined imports = "bodhi.server.tasks" +{% if env == 'production' %} # Send back tasks results so we can wait for them result_backend = 'rpc://' result_persistent = True +{% endif %} # Task routing task_routes = {