Batch Tasks
Python processes and processors allow execution of batch tasks such as import, export and ML training.
Last updated
Python processes and processors allow execution of batch tasks such as import, export and ML training.
Last updated
Python runners are used for executing batch processes, which are typically deployed as one-time jobs or scheduled cron-jobs. While it is possible to use Java runners and sagas for executing and scheduling any flow, these batch runners can be utilized for long running processes, as well as leveraging Python specific ML libraries without blocking real-time microservice resources.
Two main types of runners are available out-of-box, using :
Triggers "Process" type Python tasks, using a "base64" command line argument to pass base64 encoded contents of the Json object for process parameters. These parameters should include:
package
Python package of the module to execute
rierino_runner
-
module
Process module to execute
IterateProcess
-
args
Process module specific arguments to pass
{"parameters": {"iterator":{ "module": "rierino_runner.iterator.DataIterator", "element": "list" }}}
-
Triggers "Processor" type Python tasks, for single step, relatively simpler executions, using the following command line arguments:
base64
Base64 encoded contents of the Json object for full parameters (can include dict, package, module, parameters)
-
-
dict
Json string for passing input payload to processor
{list: []}
-
package
Python package of the module to execute
rierino_runner
-
module
Processor module to execute
RestProcessor
-
[processor_param]
Key=value pair for passing individual parameters to the processor
{url: "example.com"}
-