Job
In Nanocl, a Job is a list of commands to run.
Unlike a Cargo it aim to stop running.
There is the openapi specification for a JobPartial used to create a job:
required | Array of objects (Config) List of container to run |
null or ImagePullPolicy (string) | |
| ImagePullSecret | string or null Secret to use when pulling the image |
object Metadata (user defined) | |
| Name required | string Name of the job |
| Schedule | string or null Five-field cron expression or supported shortcut; see
[ |
| Secrets | Array of strings or null Secrets to load as environment variables |
| Ttl | integer or null >= 0 Remove the job after (x) seconds after execution |
Last updated on