use of org.apache.mesos.v1.scheduler.Protos.Call.Reconcile in project Singularity by HubSpot.
the class SingularityMesosSchedulerClient method reconcile.
/**
* Sent by the scheduler to query the status of non-terminal tasks. This causes the master to send back UPDATE
* events for each task in the list. Tasks that are no longer known to Mesos will result in TASK_LOST updates.
* If the list of tasks is empty, master will send UPDATE events for all currently known tasks of the framework.
*
* @param tasks
*/
public void reconcile(List<Reconcile.Task> tasks) {
Builder reconsile = build().setReconcile(Reconcile.newBuilder().addAllTasks(tasks));
sendCall(reconsile, Type.RECONCILE);
}
Aggregations