Skip to content

Commit

Permalink
ld-monitor: Remove session.set_status() calls and define protocol i…
Browse files Browse the repository at this point in the history
…n compose example (#812)

* Remove session.set_status calls, which are automatic now

* Specify protocol for port mapping

Docker otherwise assumes TCP, when we want UDP.
  • Loading branch information
BrianJKoopman authored Jan 6, 2025
1 parent 6c4c73e commit 9242ab2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion docs/agents/ld_monitor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ An example docker-compose configuration::
image: simonsobs/socs:latest
hostname: ocs-docker
ports:
- "1110:1110"
- "1110:1110/udp"
environment:
- INSTANCE_ID=ld-monitor
- SITE_HUB=ws://127.0.0.1:8001/ws
Expand Down
4 changes: 0 additions & 4 deletions socs/agents/ld_monitor/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ def init_ld_monitor(self, session, params=None):
"{} is already running".format(self.lock.job))
return False, "Could not acquire lock."

session.set_status('starting')

self._connect()
if not self.initialized:
return False, 'Could not connect to LD'
Expand Down Expand Up @@ -315,8 +313,6 @@ def acq(self, session, params=None):
.format(self.lock.job))
return False, "Could not acquire lock."

session.set_status('running')

self.take_data = True

session.data = {"fields": {}}
Expand Down

0 comments on commit 9242ab2

Please sign in to comment.