Hi, I think I'm seeing documentation regarding run...
# ask-community
p
Hi, I think I'm seeing documentation regarding running whole flows in docker containers, here. https://docs-3.prefect.io/v3/deploy/infrastructure-examples/docker Is there docs about running specific (prefect) tasks with specific Docker Images anywhere?
n
hi @Philip MacMenamin - this is something we're actively thinking about making smoother, but the easiest way to do this now is • define a deployment that should run on your specific infra (eg docker image) • write a task like this
Copy code
@task
def trigger_some_deployment(
  p: dict[str, Any] | None = None, jv: dict[str, Any] | None = None
) -> FlowRun:
   return run_deployment(
      'your-flow/your-deployment', parameters=p, job_variables=jv
   )
• call this task from your parent flow as needed
👍 1
p
Great, thank you @Nate!