Skip to content

Commit

Permalink
Update event_listener.py
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Mar 27, 2024
1 parent 2f5d4a9 commit 7c0906e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions event_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
STUDIO_SERVICE_PORT = os.environ.get("STUDIO_SERVICE_PORT", None)
APP_STATUS_ENDPOINT = os.environ.get("APP_STATUS_ENDPOINT", None)
APP_STATUSES_ENDPOINT = os.environ.get("APP_STATUSES_ENDPOINT", None)
TOKEN_ENDPOINT = os.environ.get("TOKEN_ENDPOINT", None)

BASE_URL = f"http://{STUDIO_SERVICE_NAME}:{STUDIO_SERVICE_PORT}"
APP_STATUS_URL = f"{BASE_URL}/{APP_STATUS_ENDPOINT}"
APP_STATUSES_URL = f"{BASE_URL}/{APP_STATUSES_ENDPOINT}"
TOKEN_URL = f"{BASE_URL}/{TOKEN_ENDPOINT}"

print(f"STUDIO_SERVICE_NAME: {STUDIO_SERVICE_NAME}", flush=True)
print(f"STUDIO_SERVICE_PORT: {STUDIO_SERVICE_PORT}", flush=True)
Expand All @@ -26,14 +24,6 @@
"PodInitializing": "Pending",
}

token = None

# Number of retries
max_retries = 10

# Time to wait between retries (in seconds)
retry_interval = 10

config.incluster_config.load_incluster_config()

api = client.CoreV1Api()
Expand Down

0 comments on commit 7c0906e

Please sign in to comment.