Malavika S Menon
09/09/2022, 6:29 AMdef random_fn():
print("Random")
@flow
def main_flow():
prefect_flow = Flow(name="random_flow", fn=random_fn)
deployment = Deployment.build_from_flow(
flow=prefect_flow,
name=random_deploy,
version=1,
work_queue_name="test-queue",
)
deployment.apply()
I'm trying to build a deployment for a flow that is created dynamically. While the deployment 'random_flow' gets created successfully, when I try to run the same, I get this error.
Flow could not be retrieved from deployment.
Traceback (most recent call last):
File "/home/malavika/.virtualenvs/lib/python3.8/site-packages/prefect/engine.py", line 256, in retrieve_flow_then_begin_flow_run
flow = await load_flow_from_flow_run(flow_run, client=client)
File "/home/malavika/.virtualenvs/lib/python3.8/site-packages/prefect/client.py", line 103, in with_injected_client
return await fn(*args, **kwargs)
File "/home/malavika/.virtualenvs/lib/python3.8/site-packages/prefect/deployments.py", line 54, in load_flow_from_flow_run
await storage_block.get_directory(from_path=deployment.path, local_path=".")
File "/home/malavika/.virtualenvs/lib/python3.8/site-packages/prefect/filesystems.py", line 134, in get_directory
shutil.copytree(from_path, local_path, dirs_exist_ok=True)
File "/usr/lib/python3.8/shutil.py", line 555, in copytree
with os.scandir(src) as itr:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpbkxm8cdtprefect'
What can be done to link this flow to the deployment properly and get it to run through the Orion UI?Matthias
09/09/2022, 6:55 AMMichael Law
09/09/2022, 8:05 AMBal Raj
09/09/2022, 10:55 AMgertjan
09/09/2022, 11:23 AMget_run_logger
Viet Nguyen
09/09/2022, 11:24 AMSlackbot
09/09/2022, 12:04 PMVadym Dytyniak
09/09/2022, 12:33 PMModuleNotFoundError: No module named 's3fs'
?Vadym Dytyniak
09/09/2022, 12:44 PMDominik Wagner
09/09/2022, 1:10 PMVadym Dytyniak
09/09/2022, 1:13 PMMark Li
09/09/2022, 1:56 PMBenjamin Cerigo
09/09/2022, 2:25 PMKei Fung Dennis Tai
09/09/2022, 2:36 PMRobin Weiß
09/09/2022, 3:20 PMprefect.exceptions.PrefectHTTPStatusError: Server error '502 Bad Gateway' for url '<https://api.prefect.cloud/api/accounts/><ACCOUNT>/workspaces/<WORKSPACE>/logs/'
For more information check: <https://httpstatuses.com/502>
Worker information:
Approximate queue length: 0
Pending log batch length: 1
Pending log batch size: 360
The log worker will attempt to send these logs again in 2.0s
Is it possible that there are too many log messages sent and the Prefect Cloud API can not respond in time?
Cheers!Amol Shirke
09/09/2022, 4:01 PMJavier Smith
09/09/2022, 4:54 PMMansour Zayer
09/09/2022, 5:35 PMNathaniel Russell
09/09/2022, 5:58 PMIlya Galperin
09/09/2022, 6:11 PMAlex Cannon
09/09/2022, 7:19 PMcreateFlowRunInput
type in the GraphQL API doesn't include labels
, is there a way to trigger a flow run with a specific label using the GraphQL API?Solmaz Bagherpour
09/09/2022, 7:36 PMAnkur Sheth
09/09/2022, 7:42 PMEsdras Lopes Nani
09/09/2022, 7:51 PMprefect agent start -q 'queue_name' &
(observe the '&' indicator to run it in background), but once I close my remote terminal the agent is killed. If I keep my terminal open the agent don't die.
Is it a current bug, am I doing something wrong or is it the normal behavior?
Thanks!Michael Dyer
09/09/2022, 8:02 PMprefect orion start --host 0.0.0.0
I have a reverse proxy (traefik) pointing to the container and I can access the UI at <https://my-host:4200>
. The reverse proxy is handling ssl offload.
The UI is displayed, but unable to connect to the API and I'm receiving the following message:
Can't connect to Orion API at <http://127.0.0.1:4200/api>. Check that it's accessible from your machine.
Q. Is there a way to configure the Orion UI so that it uses a relative URL /api
? (i.e. https://my-host:4200/api)?Otacílio Ribeiro do Amaral Neto
09/09/2022, 8:08 PMBen Ayers-Glassey
09/09/2022, 9:03 PMMiles Lauridsen
09/10/2022, 12:26 AMCole Murray
09/10/2022, 1:43 AMyusuf yel
09/10/2022, 3:12 PM