{
"id": {
"resourceType": "TASK",
"project": "flytesnacks",
"domain": "development",
"name": "my_module.process_data",
"version": "abc123"
},
"type": "python-task",
"metadata": {
"runtime": {
"type": "FLYTE_SDK",
"version": "1.16.4",
"flavor": "python"
},
"timeout": { "seconds": 3600 },
"retries": { "minimum": 2 },
"discoverable": true,
"discoveryVersion": "1.0",
"interruptible": true,
"tags": {
"team": "ml-platform"
}
},
"interface": {
"inputs": {
"variables": {
"dataset_path": { "type": { "blob": { "dimensionality": "SINGLE" } } },
"batch_size": { "type": { "simple": "INTEGER" } }
}
},
"outputs": {
"variables": {
"metrics": { "type": { "simple": "STRUCT" } }
}
}
},
"container": {
"image": "my-registry.example.com/ml-pipeline:v1.2.3",
"command": [],
"args": [
"pyflyte-execute",
"--inputs", "{{.input}}",
"--output-prefix", "{{.outputPrefix}}",
"--raw-output-data-prefix", "{{.rawOutputDataPrefix}}",
"--resolver", "flytekit.core.python_auto_container.default_task_resolver",
"--",
"task-module", "my_module",
"task-name", "process_data"
],
"resources": {
"requests": [
{ "name": "CPU", "value": "2" },
{ "name": "MEMORY", "value": "4Gi" }
],
"limits": [
{ "name": "CPU", "value": "4" },
{ "name": "MEMORY", "value": "8Gi" },
{ "name": "GPU", "value": "1" }
]
},
"env": [
{ "key": "LOG_LEVEL", "value": "INFO" },
{ "key": "BATCH_SIZE_OVERRIDE", "value": "" }
]
},
"extendedResources": {
"gpuAccelerator": {
"device": "nvidia-tesla-a100",
"unpartitioned": true
}
}
}