Task hardware environment#

Customizing task resources#

You can customize the hardware environment in which your task code executes through configuration in the @task decorator by specifying requests and limits on:

  • CPU number

  • GPU number

  • Memory size

  • Ephemeral storage size

See Customizing task resources for details.

Accelerators#

If you specify GPUs, you can also specify the type of GPU to be used by setting the accelerator parameter. See Accelerators for more information.

Task-level monitoring#

You can also monitor the hardware resources used by a task. See Task-level monitoring for details.