code: func TaskAssigned(tx *bolt.Tx, id string) bool {
  	bkt := getTaskBucket(tx, id)
  	if bkt == nil {
  		return false
  	}
  
  	return len(bkt.Get(bucketKeyAssigned)) > 0
  }
docs: // TaskAssigned returns true if the task is assigned to the node.