# schedule a stop. Otherwise the RM will stop immediately
if rm.conditions.get(ResourceAction.STOP):
rm.stop_with_conditions()
# schedule a stop. Otherwise the RM will stop immediately
if rm.conditions.get(ResourceAction.STOP):
rm.stop_with_conditions()