NSLS-II-PDF / mmm-experiments

Python package for running multimodal madness experiments with BMM
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Agent queue start #6

Closed maffettone closed 2 years ago

maffettone commented 2 years ago

This gives the agents the ability to start the queue, only if the queue has exactly 1 item, the environment is open, and the manager isn't already doing something.

@dmgav Are these sufficient conditions to make sure I'm not starting an already running queue, nor starting in a closed environment? Just want to preempt an agent crashing due to an anticipatable Exception here.

dmgav commented 2 years ago

The conditions seem to be sufficient. I think that in production version all exceptions including communication timeout exceptions should be properly processed, but this may work fine for this experiment.