https://prefect.io logo
Title
t

Theodor Sjöstedt

02/14/2023, 9:31 AM
Hi! I've followed this tutorial to set up a scheduled deployment in Prefect Cloud. I edited the yaml with
schedule:
  cron: '*/5 * * * *'
  timezone: null
  day_or: true
is_schedule_active: true
To have it run every 5 minutes, and then applied it. When I run
prefect agent start -q 'test'
I see output from my deployment every 5 minutes, so its working, but as soon as I
ctrc + C
to exit the output of the agent, it stops, and nothing is scheduled. How do I get the agent to run without my terminal? 🙂
or run in background prefect agent start -q 'test' &
t

Theodor Sjöstedt

02/14/2023, 10:49 AM
Can I run the agent in the cloud?
Since we are using Prefect Cloud... Or have I missed something?
r

redsquare

02/14/2023, 10:49 AM
prefect dont host your agent no
t

Theodor Sjöstedt

02/14/2023, 10:50 AM
So I need to have my laptop running for the jobs to run..?
n

Nimesh Kumar

02/14/2023, 10:51 AM
If you are using Linux then "Screen" command will help You can run prefect agent start -q test in the screen and detach it, it will run in background
t

Theodor Sjöstedt

02/14/2023, 10:53 AM
I come from an Airflow background, on Airflow all execution is on the server. Are you saying that Prefect is not a Airflow replacement? Sorry, I'm just feeling really confused, I just want to kill our Airflow/composer instance 😄
r

redsquare

02/14/2023, 10:55 AM
Prefect is just the scheduler and orchestration, the agent and jobs run on your infrastructure
t

Theodor Sjöstedt

02/14/2023, 12:07 PM
Oh I did not know that. Ok I'll look into how its set up on GCP. Thanks.
👍 1