Jobs
Job is the simplest execution unit. You can run it in a given runtime environment on a given resource preset with given storage volumes attached. Jobs are the building blocks of your project and should be planned carefully for optimal use of the resources.
Before you start a job, you must decide:
- The Docker image to use to run the job. Note that the job terminates if the Docker container fails unless a specific restart policy is used for the job.
- The preset - a combination of CPU, GPU, and memory resources to use.
In complex projects, you have multiple jobs running with different preset resources that are best suitable for these specific jobs.
Neu.ro lets you run a job in an environment on a given preset with several parts of the storage attached. A preset here is a combination of CPU, GPU, and memory resources allocated.
You must decide and set the amount of CPU, GPU, or memory resources you want to use for a job. By default, the cpu-small preset is used. These limits ensure that you can get better resource utilization within a compute cluster.
For example, we are using the cpu-small preset in the following command as the job doesn't need a lot of processing capacity.
Sample command:
(base) C:\Projects>neuro run --preset cpu-small --name test ubuntu echo Hello, World!