Skip to content

Commit

Permalink
Merge pull request #204 from D10S0VSkY-OSS/hotfix/redis-cache-sse
Browse files Browse the repository at this point in the history
🐛fix: redis cache bad config
  • Loading branch information
D10S0VSkY-OSS authored Nov 28, 2023
2 parents b122204 + 8362abf commit cfe2a51
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 cfe2a51

Please sign in to comment.