summaryrefslogtreecommitdiff
path: root/app/tasks.py
diff options
context:
space:
mode:
authorStas Medvedev <medvedevsa97@gmail.com>2024-06-13 02:56:50 +0300
committerStas Medvedev <medvedevsa97@gmail.com>2024-06-13 02:56:50 +0300
commit39bc8e7f12e8d97e08ff2ed86ab4d501b90e14ae (patch)
tree9a9d9431a9768fe033e5cf91e4d3cfe5f9f27d71 /app/tasks.py
parenta0c28bb50d290fe59ce781942f44ff5738758087 (diff)
docker-compose.yml
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,