summaryrefslogtreecommitdiff
path: root/app/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/tasks.py')
-rw-r--r--app/tasks.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/tasks.py b/app/tasks.py
index bba3fae..9402740 100644
--- a/app/tasks.py
+++ b/app/tasks.py
@@ -1,11 +1,12 @@
from celery import Celery
from utils import restricted_exec
+from app.config import config
app = Celery(
'tasks',
- broker='redis://localhost:6379/0',
- backend='redis://localhost:6379/0',
+ broker=f'redis://{config["REDIS_HOST"]}:6379/0',
+ backend=f'redis://{config["REDIS_HOST"]}:6379/0',
task_send_sent_event=True,
worker_send_task_events=True,
worker_enable_remote_control=True,