A task config takes various parameters as input, in this example, we will see how to use or input all these parameters in detail.Documentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Example
- As you can see in the above example, you can pass the path of the requirements file to the
requirements_pathparameter in image section of task config to install libraries mentioned in requirements files. Make sure that this file path is relative to the root directory. - You can also define the apt packages you want to install by defining them
apt_packagesparameter. - To mount the secrets or volume or string data, you can define them in the mounts parameter as seen in example.
- you can also set the retries on failure for a particular task by passing the
retriesargument in the@taskdecorator as seen in above example.