code: def status(self, value):
          
          # FIXME(BM) This is currently a hack because workflow stages
          #           don't each have their own db entry.
          pb_key = SchedulingObject.get_key(PB_KEY, self._pb_id)
          stages = DB.get_hash_value(pb_key, 'workflow_stages')
          stages = ast.literal_eval(stages)
          stages[self._index]['status'] = value
          DB.set_hash_value(pb_key, 'workflow_stages', stages)
docs: Set the workflow stage status.