Skip to main content
A task config takes various parameters as input, in this example, we will see how to use or input all these parameters in detail.

Example

  • As you can see in the above example, you can pass the path of the requirements file to the requirements_path parameter 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_packages parameter.
  • 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 retries argument in the @task decorator as seen in above example.