https://prefect.io logo
p

Prathamesh

09/30/2020, 8:46 AM
Hi all, I am new to Prefect. I have a simple Hello World python script that I'm orchestrating via Prefect. In my local Prefect Core server it takes 1 sec to run from submission to execution. But from Prefect Cloud, it takes about 6-9 minutes to complete. Any help/pointers will be helpful, thanks in advance.
n

nicholas

09/30/2020, 1:05 PM
Hi @Prathamesh - can you provide some information about your setup? What sort of machine is your flow running on, which agent you're using, and the storage/environment of your flow?
p

Prathamesh

09/30/2020, 1:40 PM
Hi @nicholas setup: Windows 10 pro, 8 GB RAM, Prefect free developer version Using Python to connect to Prefect via the API and have the core version also accessed via Python and this local machine is where my flow is running on. agent: Standard Prefect agent via Python storage/environment: Standard Prefect on Windows No clustering of any sort Please let me know if you need any further info, thanks
n

nicholas

09/30/2020, 1:42 PM
Thanks @Prathamesh - can you provide the code for your flow and your agent startup?
p

Prathamesh

09/30/2020, 1:49 PM
@nicholas code: import prefect from prefect import task, Flow @task def say_hello(): return("Hello! ") @task def to_person(your_name): return(your_name) with Flow("First_Flow!") as flow: first_result = say_hello() second_result = first_result + to_person('Prathamesh') flow.register(project_name="My First Prefect Flow") agent_startup: CLI 1 prefect backend cloud prefect auth login -t %auth_token% prefect agent start -t %runner_token% CLI 2 D: cd D:\Python\wd python prefect_demo_cloud.py
n

nicholas

09/30/2020, 2:56 PM
Hm @Prathamesh - I'm not sure what would be causing that to take so long. I tried with your flow and got a very reasonable 4 seconds for the run
p

Prathamesh

09/30/2020, 3:00 PM
@nicholas - thanks for trying it out on your side as well... perhaps a restart of the Prefect server might help?
n

nicholas

09/30/2020, 3:02 PM
I'm not sure @Prathamesh - would you mind opening a ticket on the Core repo with the information you provided here to help the team look into this?
p

Prathamesh

09/30/2020, 3:35 PM
Will do! Thanks for your time
😄 1