use of com.hazelcast.jet.impl.JobExecutionService in project hazelcast-jet by hazelcast.
the class CancelExecutionOperation method run.
@Override
public void run() throws Exception {
JetService service = getService();
JobExecutionService executionService = service.getJobExecutionService();
Address callerAddress = getCallerAddress();
ExecutionContext ctx = executionService.assertExecutionContext(callerAddress, jobId(), executionId, this);
ctx.cancelExecution();
}
Aggregations