Skip to content

Commit

Permalink
Warnings cleanup (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
vguerci authored Nov 30, 2018
1 parent c2c5abf commit b768b35
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions core/src/main/scala/com/criteo/cuttle/Executor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import java.util.concurrent.atomic.AtomicBoolean
import java.util.{Timer, TimerTask}

import scala.concurrent.duration._
import scala.concurrent.stm.Txn.ExternalDecider
import scala.concurrent.stm._
import scala.concurrent.{Future, Promise}
import scala.reflect.{classTag, ClassTag}
Expand Down Expand Up @@ -804,7 +803,7 @@ class Executor[S <: Scheduling] private[cuttle] (val platforms: Seq[ExecutionPla
existingOrNew.map(
_.fold(
identity, {
case (job, execution, promise, whatToDo) =>
case (_, execution, promise, whatToDo) =>
Future {
execution.streams.debug(s"Execution: ${execution.id}")
execution.streams.debug(s"Context: ${execution.context.asJson}")
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/scala/com/criteo/cuttle/Scheduling.scala
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.criteo.cuttle

import lol.http.PartialService
import io.circe.Json
import doobie.imports._
import cats.free._
import java.util.Comparator

import Metrics.MetricProvider
import Auth._

/** A scheduler interpret a [[Workflow]] and instanciate [[Execution Executions]] for all
* defined [[Job Jobs]]. For example, a typical cuttle [[Scheduler]] is the [[timeseries.TimeSeries TimeSeries]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ object HelloCustomScheduling {
// We will retry the execution until it is successful.
def runSuccessfully(ctx: LoopContext): Future[Completed] = {
logger.info(s"Running ${id}.${ctx.iteration}")
val (execution, result) = executor.run(job, ctx)
val (_, result) = executor.run(job, ctx)

result.recoverWith {
case e =>
Expand Down

0 comments on commit b768b35

Please sign in to comment.