def recover_and_supervise(recovery_file):
try:<EOL><INDENT>logging.info("<STR_LIT>" + recovery_file)<EOL>with open(recovery_file) as rf:<EOL><INDENT>recovery_data = json.load(rf)<EOL>monitor_data = recovery_data['<STR_LIT>']<EOL>dependencies = recovery_data['<STR_LIT>']<EOL>args = recovery_data['<STR_LIT:args>']<EOL><DEDENT><DEDENT>except:<EOL><INDENT>logging.error("<STR_LIT>")<EOL>return <NUM_LIT:1><EOL><DEDENT>logging.info("<STR_LIT>")<EOL>supervise_until_complete(monitor_data, dependencies, args, recovery_file)<EOL>
Retrieve monitor data from recovery_file and resume monitoring