Closed thbar closed 4 years ago
The usual way to create a Kiba job these days is:
module ETL module MyJob module_function def setup(config) Kiba.parse do # SNIP (job definition) end end end end
Then one would invoke it with:
Kiba.run(ETL::MyJob.setup(config))
On occasions, though (e.g. one-off scripts, or during initial prototyping) it can be useful to avoid that and just work inline:
Kiba.run(Kiba.parse do # SNIP (job definition) end)
This PR introduces a shortcut for this type of work, where you can just run the job with:
Kiba.run do # SNIP (job definition) end
The usual way to create a Kiba job these days is:
Then one would invoke it with:
On occasions, though (e.g. one-off scripts, or during initial prototyping) it can be useful to avoid that and just work inline:
This PR introduces a shortcut for this type of work, where you can just run the job with: