CLI vs. In-Code Start#
There are different ways to start your jobs. Let’s review and compare them.
CLI Starting#
We recommend using this way because it’s the easier way and more stable way.
This approach means using the CLI tool to start.
Just type regta run
to start.
It will load your jobs from all project files and pass them to
regta.run
function.
See regta run section for more information about this command.
Run Function#
If you have some specific pre-init script, you can use regta.run
directly.
This function will create a regta.Scheduler
, pass your jobs there and
start it.
See API Reference for more.
Using Scheduler#
If you’re going to use regta parallel with another framework, you can
switch off thread blocking.
For this use one of schedulers directly and pass block=True
into
regta.Scheduler.run
.
See main regta.Scheduler
and others
schedulers for more information.