Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/tax-day-experiment' into tax-day…
Browse files Browse the repository at this point in the history
…-experiment
  • Loading branch information
Phillip Maffettone committed Apr 11, 2024
2 parents e911b27 + 53a6d5a commit a4af529
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions containers/mmm5-tax-day-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
command: conda run -n GSASII --no-capture-output uvicorn bluesky_adaptive.server:app --host 0.0.0.0 --root-path /gsas-agent
environment:
- TILED_API_KEY=$TILED_API_KEY
- HTTPSERVER_API_KEY=$HTTPSERVER_API_KEY
- BS_AGENT_STARTUP_SCRIPT_PATH=/src/pdf-agents/pdf_agents/startup_scripts/mmm5-tax-day/gsas.py
volumes:
- type: bind
Expand Down Expand Up @@ -48,6 +49,7 @@ services:
command: conda run -n GSASII --no-capture-output uvicorn bluesky_adaptive.server:app --host 0.0.0.0 --root-path /kmeans-gsas-agent
environment:
- TILED_API_KEY=$TILED_API_KEY
- HTTPSERVER_API_KEY=$HTTPSERVER_API_KEY
- BS_AGENT_STARTUP_SCRIPT_PATH=/src/pdf-agents/pdf_agents/startup_scripts/mmm5-tax-day/kmeans-gsas.py
volumes:
- type: bind
Expand Down
3 changes: 2 additions & 1 deletion pdf_agents/agents.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ast
import os
import uuid
from abc import ABC
from logging import getLogger
Expand Down Expand Up @@ -274,7 +275,7 @@ def get_beamline_objects() -> dict:
config_file_path="/etc/bluesky/kafka.yml"
)
qs = REManagerAPI(http_server_uri=f"https://qserver.nsls2.bnl.gov/{beamline_tla}")
qs.set_authorization_key(api_key="yyyyy")
qs.set_authorization_key(api_key=os.getenv("HTTPSERVER_API_KEY", "zzzzz"))

kafka_consumer = AgentConsumer(
topics=[
Expand Down

0 comments on commit a4af529

Please sign in to comment.