jpuris
04/30/2023, 8:16 AMDekel R
04/30/2023, 1:49 PM12:36:08.900 | INFO | Flow run 'logical-peacock' - Created task run 'calculate_additional_features-0' for task 'calculate_additional_features'
2023-04-30 12:36:08,915 - distributed.protocol.pickle - ERROR - Failed to serialize <ToPickle: HighLevelGraph with 1 layers.
What is the problem here? what am I missing?
Sharing my flow code as a comment on this message.
Setup - running locally with pycharmâs docker compose interpeter, Prefect 2.10.4 prefect-dask==0.2.3
Thanks.Matt Delacour
04/30/2023, 7:56 PMdoes not have an infrastructure pid attached. Cancellation cannot be guaranteed.It's very hard to have more logs than that so it's hard to understand the problem and debug. Any help would be helpful đ Some more context ⢠The agent is deployed in GCP VM ⢠I use the exact same command line than specified in Cloud ⢠Stopped working last week with Prefect 2.7.* on the agent side. Same problem with 2.10.*
Ofir
05/01/2023, 8:31 AMOfir
05/01/2023, 9:29 AMYaron Levi
05/01/2023, 11:40 AMJason Noxon
05/01/2023, 12:30 PMfrom prefect.server.schemas.schedules import CronSchedule
. Is there an additional library that I need to install?
Is that only available if I am running the server local? I'm looking to use Deployment.build_from_flow()
to deploy to the cloud.Dominic Tarro
05/01/2023, 12:52 PMCancelled
state vs a Failed
state work?flapili
05/01/2023, 1:52 PMgperrone
05/01/2023, 4:18 PMawait
the call to create_table_artifact
in order to get the flow to run, maybe that could be the issue?David
05/01/2023, 5:26 PMDavid
05/01/2023, 5:49 PM...
OSError: Failed to pull from remote:
Cloning into '/var/folders/cr/8m8l_rj15d1930_z5w0z9qnc0000gn/T/tmp3cmpibx_prefect'...
fatal: repository '<my_github_repo_link_returned_here>' not found
I'm not sure what I could be doing wrong? Anyone to help?Braun Reyes
05/01/2023, 5:57 PMYD
05/01/2023, 7:20 PMnohup prefect agent start --work-queue "<name>" > ~/tmp/prefect_agent.log &
It use to work fine, but recently I notices it becomes âunhealthyâ and stops running flows.
any idea why this might happen and how to prevent this ?
thanksAbhinav Chordia
05/01/2023, 7:41 PMModuleNotFoundError
for anything that is defined outside of the flow file. How do I pull in all my other code into the dependency tree?Kevin Ruprecht
05/01/2023, 8:45 PMRoss Leung
05/01/2023, 9:09 PMAaron
05/01/2023, 10:33 PMprefect orion start
and then:
prefect agent start -q WORK_QUEUE_NAME
to start my various work queues
Do I need to configure one or more work pools, or can I just continue running these commands the same way (changing orion to server of course)?Abhinav Chordia
05/02/2023, 5:26 AMLiel Bach
05/02/2023, 7:01 AMpending
stage.
Attaching an example flow run log from the pod itself (flow names and IDs are redacted):
22:11:09.051 | DEBUG | prefect.profiles - Using profile 'default'
/usr/local/lib/python3.10/runpy.py:126: RuntimeWarning: 'prefect.engine' found in sys.modules after import of package 'prefect', but prior to execution of 'prefect.engine'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
22:11:09.084 | DEBUG | prefect.client - Connecting to API at <https://api.prefect.cloud/api/accounts/><redacted>/workspaces/<redacted>/
22:11:09.916 | INFO | Flow run 'lambda6-tarakis-instability' - Downloading flow code from storage at '/flexor'
22:11:09.918 | DEBUG | Flow run 'lambda6-tarakis-instability' - Importing flow code from 'transformations/example_flow.py:example_flow'
22:11:09.928 | DEBUG | prefect.client - Connecting to API at <https://api.prefect.cloud/api/accounts/><redacted>/workspaces/<redacted>/
Itâs worth mentioning that we donât use any special storage block, we just use the preloaded code in the image (using the --path
parameter in a flow deployment)Nimrod Milo
05/02/2023, 7:46 AMDownloading flow code from storage at None
which is usually the first line (in the case the job hangs it is also the last)
Any help or direction to check would be very helpful đKasper DjernĂŚs
05/02/2023, 9:18 AMJason Noxon
05/02/2023, 12:21 PMDeployment.build_from_flow()
deployment method? I tried adding a dictionary called parameters=
to the call, but no love.William Jamir
05/02/2023, 1:34 PMFlow overall: 10%
Linux: Processing 20%
Macos: Processing 50%
...
I question whether Prefect can provide an out-of-the-box solution for this notification system or if anyone could recommend any resources or best practices to help me achieve this.
I know that Prefect has callbacks for each task when it concludes, but I am wondering if there is a way for my main flow to track the state changes of the sub-tasks as well.
Thank you in advance for any guidance or suggestions you may have.Kirill Egorov
05/02/2023, 2:24 PMmerlin
05/02/2023, 2:33 PMAnders Segerberg
05/02/2023, 3:21 PMA
I'm using as a flow-of-flows. A
goes and downloads a bunch of data from S3. I want to pass this data (say, 500MB of JSON) to a child flow B
via Parameter.Lance
05/02/2023, 3:22 PMnicholasnet
05/02/2023, 4:45 PMAnders Segerberg
05/02/2023, 5:02 PM