use of org.apache.mesos.v1.scheduler.Protos.Call.Shutdown in project Singularity by HubSpot.
the class SingularityMesosSchedulerClient method shutdown.
/**
* Sent by the scheduler to shutdown a specific custom executor. When an executor gets a shutdown event,
* it is expected to kill all its tasks (and send TASK_KILLED updates) and terminate. If an executor
* doesn’t terminate within a certain timeout, the agent will forcefully destroy the container
* (executor and its tasks) and transition its active tasks to TASK_LOST.
*
* @param executorId
*/
public void shutdown(ExecutorID executorId) {
Builder shutdown = build().setShutdown(Shutdown.newBuilder().setExecutorId(executorId));
sendCall(shutdown, Type.SHUTDOWN);
}
use of org.apache.mesos.v1.scheduler.Protos.Call.Shutdown in project Singularity by HubSpot.
the class SingularityMesosSchedulerClient method shutdown.
public void shutdown(ExecutorID executorId, AgentID agentId) {
Builder shutdown = build().setShutdown(Shutdown.newBuilder().setExecutorId(executorId).setAgentId(agentId));
sendCall(shutdown, Type.SHUTDOWN);
}
Aggregations