Skip to content

Commit

Permalink
remove duration again
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Graff committed Dec 18, 2017
1 parent 7200c48 commit bb6efe2
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.time.Duration;
import java.time.Instant;
import java.util.*;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -213,13 +212,6 @@ public CanaryExecutionResponse initiateCanary(@RequestParam(required = false) fi
.put("canaryExecutionRequest", canaryExecutionRequestJSON)
.build());

Duration controlDuration = Duration.between(controlScopeModel.getStart(), controlScopeModel.getEnd());
Duration experimentDuration = Duration.between(experimentScopeModel.getStart(), experimentScopeModel.getEnd());

if (controlDuration.equals(experimentDuration)) {
canaryJudgeContext.put("durationString", controlDuration.toString());
}

Execution pipeline =
new PipelineBuilder("kayenta-" + currentInstanceId)
.withName("Standard Canary Pipeline")
Expand Down

0 comments on commit bb6efe2

Please sign in to comment.