John Horn
02/22/2023, 11:40 PM# prefect version
23:39:04.743 | DEBUG | prefect.client - Connecting to API at <https://api.prefect.cloud/api/accounts/57e0246d-d752-4737-b29a-192e8f6eb886/workspaces/6d439078-f534-4a0a-89e0-9c4ced644d6a/>
Version: 2.5.0
API version: 0.8.2
Python version: 3.8.16
Git commit: eac37918
Built: Thu, Oct 6, 2022 12:41 PM
OS/Arch: linux/aarch64
Profile: default
Server type: cloud
I am trying to create a deployment that calls a flow with a flow_run_name parameter.
I am guessing that my prefect version needs to be updated however I don't know how to upgrade the prefect cloud version.
My actual local prefect agent is using the latest 2.8.2 but I'm guessing it is prefect cloud that is stuck on 2.5.0 and I see no documentation on how to update that.
@flow(flow_run_name='testing123')
TypeError: flow() got an unexpected keyword argument 'flow_run_name'
Nate
02/23/2023, 1:06 AMI am guessing that my prefect version needs to be updatedI'd guess the same! you should not have to update prefect cloud (in fact, that's not a thing you can do), just your local version of the
prefect
package.
so in your local dev env / agent env you could do pip install -U prefect
John Horn
02/23/2023, 1:40 AMNate
02/23/2023, 1:44 AMwhen I run prefect version it returns me the cloud server versionis the output you shared above what you get when you run
prefect version
in the environment where you're running your agent?John Horn
02/23/2023, 2:06 AMBuilt: Thu, Oct 6, 2022 12:41 PM
OS/Arch: linux/aarch64
Profile: default
Server type: cloud
Nate
02/23/2023, 2:10 AMJohn Horn
02/23/2023, 2:16 AMinfrastructure=DockerContainer(
image='prefect-orion:2.8.2',
Nate
02/23/2023, 2:22 AMprefecthq/prefect:2.8.2-python3.{minor version}
for the image
?John Horn
02/23/2023, 9:37 PMFROM prefecthq/prefect:2.8.2-python3.8
FROM prefecthq/prefect:2.8.2-python3.8
RUN apt update && \
apt install -y vim && \
pip install psycopg2-binary s3fs && \
pip install --upgrade httpcore==0.16.2 \
pip install gcsfs==2022.11.0
WORKDIR /
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
services:
# --------------------------------------#
# Docker Agent #
# --------------------------------------#
prefect-agent:
build: .
# image: ${PREFECT_AGENT_IMAGE}
command:
- prefect
- agent
- start
- -q
- default
docker-compose -f docker-compose.yaml up -d --force-recreate --no-deps --scale prefect-agent=10
prefect version
21:39:48.043 | DEBUG | prefect.client - Connecting to API at <https://api.prefect.cloud/api/accounts/57e0246d-d752-4737-b29a-192e8f6eb886/workspaces/6d439078-f534-4a0a-89e0-9c4ced644d6a/>
Version: 2.5.0
API version: 0.8.2
Python version: 3.8.16
Git commit: eac37918
Built: Thu, Oct 6, 2022 12:41 PM
OS/Arch: linux/aarch64
Profile: default
Server type: cloud
prefecthq/prefect:2.8.1-python3.8