Deployment configuration marks a workflow with its name, API path, replica bounds, CPU scaling threshold, and response mode. A decorator stores these settings as metadata on a wrapper that preserves the function’s normal behavior, allowing a deployment tool to discover the settings after importing the Python file. section 2.5.3
wrapper._workflow_metadata = {
"name": name,
"api_path": api_path,
"scaling": {
"min_replicas": min_replicas,
"max_replicas": max_replicas,
"target_cpu_percent": target_cpu_percent
},
"response_mode": response_mode
}
return wrapper
return decoratorThe metadata dictionary groups identity, scaling, and response-mode settings for deployment discovery. section 2.5.3

