Sean Turner
09/16/2024, 5:20 PMKevin Grismore
09/16/2024, 5:58 PM"resources": {
  "requests": {
    "cpu": "{{ cpu_request }}",
    "memory": "{{ memory_request }}"
  },
  "limits": {
    "cpu": "{{ cpu_limit }}",
    "memory": "{{ memory_limit }}"
  }
}
• In the properties of the variables section, add:
"cpu_request": {
  "type": "string",
  "title": "CPU Request",
  "description": "The minimum CPU given to infrastructure created by a worker."
},
"cpu_limit": {
  "type": "string",
  "title": "CPU Limit",
  "description": "The maximum CPU allowed for infrastructure created by a worker."
},
"memory_request": {
  "type": "string",
  "title": "Memory Request",
  "description": "The minimum memory given to infrastructure created by a worker."
},
"memory_limit": {
  "type": "string",
  "title": "Memory Limit",
  "description": "The maximum memory allowed for infrastructure created by a worker."
}
Now you can specify cpu_request, cpu_limit, memory_request, and memory_limit in the job_variables for individual deployments. For more information on overriding job variables, refer to the Prefect documentation.Sean Turner
09/16/2024, 7:50 PMPaweł Biernat
09/17/2024, 11:01 AM