Simon
10/24/2024, 10:04 PMMarvin
10/24/2024, 10:04 PMpyproject.toml
or requirements.txt
file, or by running prefect version
in your command line.
Once we have this information, I'll search the relevant documentation and resources for possible solutions.Nate
10/24/2024, 10:06 PM.serve
(which doesnt require a worker) have you started a worker that will listen for / execute scheduled runs?Simon
10/24/2024, 10:06 PMNate
10/24/2024, 10:06 PMMarvin
10/24/2024, 10:06 PMSimon
10/24/2024, 10:16 PMNate
10/24/2024, 10:18 PMif __name__ == "__main__":
github_stars.serve(
name="first-deployment",
cron="* * * * *",
parameters={"repos": ["PrefectHQ/prefect"]}
)
i.e. using .serve
? in that case, you don't need a worker, that process will listen for scheduled runsSimon
10/24/2024, 10:20 PMNate
10/24/2024, 10:20 PMprefect config view
?Nate
10/24/2024, 10:21 PMSimon
10/24/2024, 10:21 PMNate
10/24/2024, 10:22 PM.serve
, do you see a deployment?
do you see a deployment when you do prefect deployment ls
?Simon
10/24/2024, 10:27 PMprefect deploy
but on the UI it is still on "*Create a deployment to get started"* even though the schedule is currently runningNate
10/24/2024, 10:31 PMexport PREFECT_UI_API_URL=<http://127.0.0.1:4200/api>
⢠restart your server, prefect server start
Simon
10/24/2024, 10:37 PMNate
10/24/2024, 10:38 PMprefect==3.0.11
(i.e. setting the ui url yourself shouldnt be required)Nate
10/24/2024, 10:39 PM