

def handle_post_application_migrate(self, handle, connection, match, data, hdr):
    app_id = match.group(1)
    try:
        self.node.app_manager.migrate_with_requirements(app_id, deploy_info=(data['deploy_info'] if ('deploy_info' in data) else None), move=(data['move'] if ('move' in data) else False), cb=CalvinCB(self.handle_post_application_migrate_cb, handle, connection))
    except:
        _log.exception('App migration failed')
        self.send_response(handle, connection, None, status=calvinresponse.INTERNAL_ERROR)

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvincontrol.py CalvinControl.handle_post_application_migrate/original