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