Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Commit

Permalink
Problem: overlap option is not set to jobs
Browse files Browse the repository at this point in the history
Solution: add test case and add overlap option in normalize step

Fixes quantum-elixir#71
  • Loading branch information
c-rack committed Jan 28, 2016
1 parent 510529f commit 3be8a15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/quantum/normalizer.ex
Expand Up @@ -110,6 +110,7 @@ defmodule Quantum.Normalizer do
schedule: extract(:schedule, opts),
task: extract(:task, opts),
args: extract(:args, opts, []),
overlap: extract(:overlap, opts, Application.get_env(:quantum, :default_overlap, true)),
nodes: :nodes |> extract(opts, [node()]) |> atomize
}
end
Expand Down
2 changes: 2 additions & 0 deletions test/normalizer_test.exs
Expand Up @@ -16,6 +16,7 @@ defmodule Quantum.NormalizerTest do
schedule: "@weekly",
task: "MyModule.my_method",
args: [1, 2, 3],
overlap: false,
nodes: [:atom@node, "string@node"]
]}

Expand All @@ -24,6 +25,7 @@ defmodule Quantum.NormalizerTest do
schedule: "@weekly",
task: {"MyModule", "my_method"},
args: [1, 2, 3],
overlap: false,
nodes: [:atom@node, :string@node]
}}
end
Expand Down

0 comments on commit 3be8a15

Please sign in to comment.