// filter func used for explicit task reconciliation, selects only non-terminal tasks which // have been communicated to mesos (read: launched). func explicitTaskFilter(t *podtask.T) bool { switch t.State { case podtask.StateRunning: return true case podtask.StatePending: return t.Has(podtask.Launched) default: return false } }