code: func (b *Backend) SetStateFailure(signature *tasks.Signature, err string) error {
  	taskState := tasks.NewFailureTaskState(signature, err)
  	return b.updateState(taskState)
  }
docs: // SetStateFailure updates task state to FAILURE