Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Docs Required, Release Notes Required
Description
Currently org.apache.ignite.compute.IgniteCompute have follow API
<R> CompletableFuture<R> executeAsync(...);
In this task we need to inroduce JobExecution interface
public interface JobExecution<T> { CompletableStage<T> resultAsync(); CompletableStage<JobStatus> statusAsync(); default CompletableStage<UUID> idAsync() { return status().thenApply(status -> status.id()); } CompletableStage<Boolean> cancelAsync(); CompletableStage<Boolean> changePriority(long newPriority); }
and modify public API
<R> JobExecution<R> executeAsync(...);
Important note
Implementation of JobExecution interface on clients-side can be done in follow-up tickets. But changes made in this ticket should be backward compatibility.
Attachments
Issue Links
- relates to
-
IGNITE-21516 Add JobStatus.queuePosition
-
- Open
-
- links to