Quantum v2.3.4 Quantum.RunStrategy.Local View Source

Run job on local node

Mix Configuration

config :my_app, MyApp.Scheduler,
  jobs: [
    # Run on local node
    [schedule: "* * * * *", run_strategy: Quantum.RunStrategy.Local]
  ]

Link to this section Summary

Functions

Normalize given config to a value that has Quantum.RunStrategy.NodeList implemented

Link to this section Types

Link to this type t() View Source
t() :: %Quantum.RunStrategy.Local{nodes: any()}

Link to this section Functions

Link to this function normalize_config!(_) View Source
normalize_config!(any()) :: t()

Normalize given config to a value that has Quantum.RunStrategy.NodeList implemented.

Raise / Do not Match on invalid config.

Callback implementation for Quantum.RunStrategy.normalize_config!/1.