Skip to content

Commit

Permalink
Fix redis client
Browse files Browse the repository at this point in the history
  • Loading branch information
John Cordeiro committed Dec 11, 2024
1 parent 93a1048 commit fa5f482
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion router/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
@celery_app.task(bind=True)
def start_route(self, message: Dict) -> bool: # pragma: no cover

redis_client = Redis(host=settings.REDIS_HOST, port=6379, db=0) # Use Redis host from settings
# Initialize Redis client using the REDIS_URL from settings
redis_client = Redis.from_url(settings.REDIS_URL)

print(f"[+ Message received: {message} +]")

Expand Down

0 comments on commit fa5f482

Please sign in to comment.