Package

com.criteo.cuttle

cron

Permalink

package cron

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. cron
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class CronContext(instant: Instant)(retryNum: Int) extends SchedulingContext with Product with Serializable

    Permalink

    A CronContext is passed to executions initiated by the CronScheduler.

  2. type CronExecution = Execution[CronScheduling]

    Permalink
  3. type CronJob = Job[CronScheduling]

    Permalink
  4. class CronProject extends AnyRef

    Permalink

    A cuttle project is a workflow to execute with the appropriate scheduler.

    A cuttle project is a workflow to execute with the appropriate scheduler. See the CronProject companion object to create projects.

  5. case class CronScheduler(logger: Logger) extends Scheduler[CronScheduling] with Product with Serializable

    Permalink

    A CronScheduler executes the set of Jobs at the time instants defined by Cron expressions.

    A CronScheduler executes the set of Jobs at the time instants defined by Cron expressions. Each Job has it's own expression and executed separately from others.

    The Scheduler ensures that at least one Execution is created and successfully run for a given time instant. It also handles the retry policy.

    We follow the semantic of Cron on Unix systems and we don't manage misfires (meaning that if the scheduler missed some events because it was offline, or because a previous job execution was still running, we won't replay them).

    Job is considered as finished when we can't produce the next computing instant from Cron expression.

  6. case class CronScheduling(cronExpression: String, maxRetry: Int) extends Scheduling with Product with Serializable

    Permalink

    Configure a job as a CronScheduling job.

    Configure a job as a CronScheduling job.

    cronExpression

    Cron expression to be parsed by https://github.com/alonsodomin/cron4s. See the link above for more details.

    maxRetry

    The maximum number of retries authorized.

  7. case class CronWorkload(jobs: Set[CronJob]) extends Workload[CronScheduling] with Product with Serializable

    Permalink

    Class regrouping jobs for scheduler.

    Class regrouping jobs for scheduler. It doesn't imply any order.

    jobs

    Jobs to schedule.

Value Members

  1. object CronContext extends Product with Serializable

    Permalink
  2. object CronProject

    Permalink

    Create new projects using a timeseries scheduler.

  3. object Implicits

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped