A job scheduling tool.
The platform uses image: mcuadros/ofelia:v0.3.6 which has the following limitations:
Ofelia does not support config.ini files when run in docker mode (which enables scheduling jobs with docker labels) thus we need to always use the config.ini file for creating jobs.
Ofelia does not support attaching to a running instance of a service.
Ofelia does not support job-run (which allows you to launch a job with a specified image name) labels on non-ofelia services (ie. you may not specify a job of type job-run within the nginx package as ofelia will not pick it up)
Ofelia only initializes jobs when it stands up and does not listen for new containers with new labels to update it's schedules, thus Ofelia needs to be re-up'd every time a change is made to a job that is configured on another service's label.
An example of job config in the file config.example.ini
existing in the folder <path to project packages>/job-scheduler-ofelia/.
You can specify multiple jobs in a single file.
Listed in this page are all environment variables needed to run Ofelia.
The Ofelia service does not make use of any environment variables. However, when specifying jobs in the config.ini
file(s) we can pass any environment variable in.
Example:
In the example above, OPENHIM_MONGO_URL
is an environment variable.
A job scheduling tool.