def set_status(self, status, message=None):
    self.status = status
    if message:
      self.status_message = message
Should be used to define conditions when task should be executed.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/webapp/mock_webapp.py/MockResponse.set_status--crossover with--dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/orchestrator/tasks_serializer.py/DeploymentHook.should_execute