Using the GCP Cloud Run V2 Worker, is there a way ...
# ask-community
a
Using the GCP Cloud Run V2 Worker, is there a way to configure timeout, memory, and cpu per flow?
b
Hey Andrew! You should be able to achieve this by passing job variables to the flow. This will let you override infrastructure defaults specified at the work pool and deployment level. If you're using run_deployment to kick off a flow run, it'll look something like this:
Copy code
run_deployment(
    name = "your-deployment-name/your-flow-name",
    parameters={"foo": "bar"}
    job_variables={
        "timeout": 3600,  # in seconds
        "memory": "2Gi",  # memory limit
        "cpu": "1"        # CPU limit
    }