Brian Lorenz
02/19/2022, 12:27 AMline 282, in get_profile_context raise MissingContextError("No profile context found.")
Any suggestions on how to fix this?Kevin Kho
Brian Lorenz
02/19/2022, 12:35 AMKevin Kho
import asyncio
from prefect.client import get_client
async def some_function():
async with get_client() as client:
response = await client.hello()
print(response.json())
if __name__=="__main__":
asyncio.run(some_function())
Brian Lorenz
02/19/2022, 1:36 AM