https://prefect.io logo
Title
e

Erik Amundson

10/19/2022, 5:11 PM
Hi, I'm having some issues with the async python Orion client and what looks to be a cloudpickle error. Code/screenshots in thread.
1
Prefect 2.6.3, Python 3.8. Backend is Prefect Cloud. Code is pretty simple:
import asyncio
from prefect.client.orion import get_client
client = get_client()
resp = asyncio.run(client.read_flow_runs())
But there seems to be a missing argument to cloudpickle in the internal utils (see screenshot) FWIW
prefect flow-run ls
works fine from the command line, so I don't think it's an issue with the api endpoint itself.
Also, many other endpoints do work, for example
client.api_healthcheck()
client.read_deployments()
client.read_block_documents()
client.read_logs()
all seem to work correctly
j

Jeff Hale

10/19/2022, 9:36 PM
Hmm. Thanks, Erik. Sounds like a bug. I don’t see an open issue on the topic. Are you able to open at the repo: https://github.com/PrefectHQ/prefect/issues/new/choose?
e

Erik Amundson

10/19/2022, 10:25 PM
Yeah I'll open an issue