code: def restart_app(app_id, is_finished=False):
      
      state = constant.STATE_APP_RUNNING if is_finished else constant.STATE_APP_RESTARTING
      app_update_state(app_id, state)
docs: update app state to 'Running'