The executors are plugins for Runnerty which encapsulate functionalities. The processes of a chain use executors to realize different actions.
There are a bunch of executors for different purposes. Execute sentences in different databases like mysql, postgres, etc. Sending mails, operations with S3 files. You can have a look at the official list of executors here.
config.json file of the project we are going to write the configuration of the different executors that are going to be used in the processes.
This is an example of the configuration of two executors:
@runnerty-executor-mysql. Each executor has it's owns properties, some of them are mandatory, you can have a look at each executor documentation to know how to use them.
The destination of an executor is to use it in our plan's processes. We could say that using an executor has two parts:
The configuration properties are set in the config.json. They are the identifiers fields of the executor. For example, this is the configuration properties for the @runnerty-executor-shell:
id is the name given for the executor configuration. Note that we could have all the differents configuratios that we want for the same executor. The
type is the name of the executor.
In the processes are set the variable properties (params) for the executor. This is an example of the usage of the
@runnerty-executor-shell in a process
Runnerty matchs the
id property from the plan with the config.json one to identify the executor to run. Properties like
args are the variable properties that may change in every process.
It is important to know that it is possible to overwrite some configuration properties from the
exec properties of the processes. For example: if we are using the
@runnerty/executor-mysql we may want to change the database that the executor is going to connect.
This is the configuration of the executor. We are connecting to
We can overwrite this information from the
exec properties of the process: