Hi guys! I have a question, is there a specific way to point my deployment on specific conda env to use while running flow? Right now I would do it like this:
prefect deployment build -n marvin -p default-agent-pool -q test flows/marvin.py:say_hi
Copy code
name: name
description: null
version: version
# The work queue that will handle this deployment's runs
work_queue_name: w-q
work_pool_name: w-p
tags: []
parameters: {}
schedule: null
is_schedule_active: null
infra_overrides: {}
infrastructure:
type: process
env: {}
labels: {}
name: null
command:
- conda
- run
- -n
- conda_env_name
- python
- -m
- prefect.engine
stream_output: true
working_dir: null
block_type_slug: process
_block_type_slug: process
###
### DO NOT EDIT BELOW THIS LINE
###
flow_name: flow-name
manifest_path: null
storage: null
path: path
entrypoint: flow.py:flow
parameter_openapi_schema:
title: Parameters
type: object
properties: {}
required: null
definitions: null
timestamp: '2023-12-14T15:01:06.337189+00:00'
triggers: []
Is it correct way? Thanks!
✅ 1
b
Bianca Hoch
12/14/2023, 4:07 PM
Hi Kacper, this seems correct, and if this already works for you, I'd say you're good to go!
Bianca Hoch
12/14/2023, 4:08 PM
The other solution that I could think of would be to have your agent running in a environment where your conda env is already activated
k
Kacper Kwasnioch
12/15/2023, 8:27 AM
Thanks @Bianca Hoch for responding! I will try either ways.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.