Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fdc-ntflx committed Oct 28, 2023
1 parent 1e653b7 commit 0ec88c1
Showing 1 changed file with 0 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,6 @@ public Receive createReceive() {
.build();
}

/**
*
*
*
*
*
*
* BATCH
*
*
*
*
*/
private void onBatchScheduleRequestEvent(BatchScheduleRequestEvent event) {
log.info("[fdc-91] onBatchScheduleRequestEvent! Event: {}", event);

Expand Down Expand Up @@ -195,20 +182,6 @@ private void onFailedToBatchScheduleRequestEvent(FailedToBatchScheduleRequestEve
}
}

/**
*
*
*
*
*
*
* SINGLE
*
*
*
*
*
*/
private void onScheduleRequestEvent(ScheduleRequestEvent event) {
if (event.isRetry()) {
log.info("Retrying Schedule Request {}, attempt {}", event.getRequest(),
Expand All @@ -223,7 +196,6 @@ private void onScheduleRequestEvent(ScheduleRequestEvent event) {
.<Object>thenApply(event::onAssignment)
.exceptionally(event::onFailure);

// TODO: not sure if the List<AssignedScheduleRequestEvent> will work honestly...
pipe(assignedFuture, getContext().getDispatcher()).to(self());
}

Expand Down Expand Up @@ -490,14 +462,6 @@ FailedToScheduleRequestEvent onFailure(Throwable throwable) {
AssignedScheduleRequestEvent onAssignment(TaskExecutorID taskExecutorID) {
return new AssignedScheduleRequestEvent(this, taskExecutorID);
}

// List<TaskExecutorAllocationRequest> getTaskExecutorAllocationRequests() {
// return request
// .getScheduleRequests()
// .stream()
// .map(req -> TaskExecutorAllocationRequest.of(req.getWorkerId(), req.getMachineDefinition(), req.getJobMetadata(), req.getStageNum()))
// .collect(Collectors.toList());
// }
}

@Value
Expand All @@ -522,12 +486,6 @@ private ScheduleRequestEvent onRetry() {
}
}

@Value
private static class AssignmentScheduleRequest {
public ScheduleRequest scheduleRequest;
public TaskExecutorID taskExecutorID;
}

@Value
private static class AssignedBatchScheduleRequestEvent {

Expand Down Expand Up @@ -575,7 +533,6 @@ private static class FailedToSubmitScheduleRequestEvent {

@Value
static class CancelRequestEvent {
// TODO: understand if we need a batch cancel...

WorkerId workerId;
int attempt;
Expand Down Expand Up @@ -605,15 +562,6 @@ static CancelBatchRequestEvent of(String jobId) {
// }
}

@Value
static class MarkJobAsStartedRequestEvent {
String jobId;

static MarkJobAsStartedRequestEvent of(String jobId) {
return new MarkJobAsStartedRequestEvent(jobId);
}
}

@Value
private static class RetryCancelRequestEvent {

Expand Down

0 comments on commit 0ec88c1

Please sign in to comment.