@@ -11,9 +11,11 @@ CONFIG_DIR=`dirname $0`/src/mx_bluesky/hyperion
1111BLUEAPI_CONFIG=$CONFIG_DIR /blueapi_config.yaml
1212SUPERVISOR_CONFIG=$CONFIG_DIR /supervisor/supervisor_config.yaml
1313CLIENT_CONFIG=$CONFIG_DIR /supervisor/client_config.yaml
14+ STOMP_CONFIG=$CONFIG_DIR /blueapi_config.yaml
1415DO_CALLBACKS=1
1516HEALTHCHECK_PORT=5005
1617CALLBACK_WATCHDOG_PORT=5005
18+ CALLBACK_MODE=0mq
1719
1820for option in " $@ " ; do
1921 case $option in
@@ -45,6 +47,9 @@ for option in "$@"; do
4547 DO_CALLBACKS=0
4648 HEALTHCHECK_PORT=5006
4749 ;;
50+ --stomp)
51+ CALLBACK_MODE=stomp
52+ ;;
4853 --help|--info|--h)
4954 source .venv/bin/activate
5055 echo " ` basename $0 ` [options]"
@@ -62,6 +67,7 @@ Options:
6267 --blueapi Start hyperion in blueapi mode instead of taking commands from GDA
6368 --supervisor Start hyperion in supervisor mode, taking commands from Agamemnon and feeding them to
6469 an instance running in blueapi mode.
70+ --stomp Start external callbacks in stomp mode instead of 0mq (the default)
6571 --help This help
6672
6773By default this script will start an Hyperion server unless the --no-start flag is specified.
@@ -158,6 +164,9 @@ if [[ $START == 1 ]]; then
158164 if [ $MODE = " supervisor" ]; then
159165 h_commands+=" --client-config ${CLIENT_CONFIG} --supervisor-config ${SUPERVISOR_CONFIG} "
160166 fi
167+ if [ " ${CALLBACK_MODE} " = " stomp" ]; then
168+ cb_commands+=" --stomp-config $STOMP_CONFIG "
169+ fi
161170 for i in " ${! h_and_cb_args[@]} "
162171 do
163172 if [ " ${h_and_cb_args[$i]} " != false ]; then
0 commit comments