code: def _ready(self):
          
          if self._has_state(self.COMPLETED) or self._has_state(self.CANCELLED):
              return
          self._set_state(self.READY)
          self.task_spec._on_ready(self)
docs: Marks the task as ready for execution.