Skip to content

Commit

Permalink
🐛fix: redis cache bad config
Browse files Browse the repository at this point in the history
  • Loading branch information
D10S0VSkY-OSS committed Nov 28, 2023
1 parent df47a5e commit 8362abf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions sld-api-backend/src/worker/domain/services/command.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import logging
import subprocess
import redis
from config.api import settings

redis_client = redis.Redis(host='localhost', port=6379, db=15)
redis_client = redis.Redis(host=settings.CACHE_SERVER, port=6379, db=15)


def command(command: str, channel: str):
Expand Down Expand Up @@ -48,4 +49,4 @@ def command(command: str, channel: str):
logging.error(
f"Error execute command code: {err.returncode}. Error:\n{err.stderr}"
)
return None
return err.returncode, err.stderr
1 change: 0 additions & 1 deletion sld-api-backend/src/worker/providers/hashicorp/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Actions(StructBase):
project_path: str
task_id: str
subprocess_handler: command = command
output = ""

def execute_terraform_command(self, action: str) -> dict:
channel = self.task_id
Expand Down

0 comments on commit 8362abf

Please sign in to comment.