Skip to content

Commit

Permalink
Add ComCam support.
Browse files Browse the repository at this point in the history
  • Loading branch information
dspeck1 committed Dec 3, 2024
1 parent 69f7390 commit 7c1a9f3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ async def main() -> None:
# Keda environment variables
prompt_processing_kafka_cluster = os.environ["PROMPT_PROCESSING_KAFKA_CLUSTER"]
fan_out_comcamsim_topic = os.environ["FAN_OUT_COMCAMSIM_TOPIC"]
fan_out_comcam_topic = os.environ["FAN_OUT_COMCAM_TOPIC"]
fan_out_hsc_topic = os.environ["FAN_OUT_HSC_TOPIC"]
fan_out_latiss_topic = os.environ["FAN_OUT_LATISS_TOPIC"]
fan_out_security_protocol = os.environ["FAN_OUT_KAFKA_SECURITY_PROTOCOL"]
Expand Down Expand Up @@ -349,7 +350,15 @@ async def main() -> None:
case "LSSTComCam":
logging.info(f"Ignore LSSTComCam message {next_visit_message_updated}"
" as the prompt service for this is not yet deployed.")
continue
fan_out_message_list = (
next_visit_message_updated.add_detectors(
dataclasses.asdict(next_visit_message_updated),
# Just use ComCam active detector config.
lsstcomcam_active_detectors,
fan_out_delivery_time,
)
)
fan_out_topic = fan_out_comcam_topic
case "LSSTCam":
logging.info(f"Ignore LSSTCam message {next_visit_message_updated}"
" as the prompt service for this is not yet deployed.")
Expand Down

0 comments on commit 7c1a9f3

Please sign in to comment.