def _stop(sas, cmd_args):
if not cmd_args.force:<EOL><INDENT>status = sas.get_instance_status()<EOL>jobs = int(status['<STR_LIT>'])<EOL>if jobs:<EOL><INDENT>return status<EOL><DEDENT><DEDENT>return sas.stop_instance()<EOL>
Stop the service if no jobs are running unless force is set