Casey Green
12/03/2021, 4:27 PMOrionClient.create_deployment(...)
In both cases, it supposedly succeeds, but it's not showing up in the UI. I've also tried copying the simple example in the docs verbatim, but no dice.
$ prefect version
2.0a5
$ prefect deployment create ./my_flow_deployment.py
Loading deployments from python script at 'my_flow_deployment.py'...
Created deployment 'my-first-deployment' for flow 'Addition Machine'
note: I'm able to run flows and see them show up in the UI.Zanie
Casey Green
12/03/2021, 4:50 PMCronSchedule(cron="0 0 * * *")
to it but its still not showing upCasey Green
12/03/2021, 4:51 PMDeploymentSpec(
flow_location=f"{this_dir}/my_flow.py",
name="my-first-deployment",
parameters={"nums": [1, 2, 3, 4]},
schedule=CronSchedule(cron="0 0 * * *"),
)
my_flow.py
is the one in the docsCasey Green
12/03/2021, 4:52 PMZanie
prefect deployment ls
does it list your deployment?Casey Green
12/03/2021, 4:55 PMOrionClient
)
$ prefect deployment ls
Addition Machine/my-first-deployment
Addition Machine/my-first-deployment-2
run_export/ScheduledExport(25, 102714, 4951)
run_export/ScheduledExport(customer_id=25, export_settings_id=10775, segment_id=125399)
... 25 more ...
Zanie
Zanie
PREFECT_LOGGING_DEFAULT_LEVEL=DEBUG prefect orion start
then
PREFECT_ORION_HOST="<http://127.0.0.1:4200/api/>" prefect deployment create ./my_flow_deployment.py
Zanie
Casey Green
12/03/2021, 6:00 PMINFO: 127.0.0.1:60644 - "POST /api/deployments/ HTTP/1.1" 200 OK
but still doesn't show up in the UICasey Green
12/03/2021, 6:02 PMZanie
Zanie
python -c "import sqlite3; print(sqlite3.sqlite_version_info)"
get you?Casey Green
12/03/2021, 6:06 PM$ python -c "import sqlite3; print(sqlite3.sqlite_version_info)"
(3, 28, 0)
$ sqlite3 --version
3.28.0 2019-04-15 14:49:49 378230ae7f4b721c8b8d83c8ceb891449685cd23b1702a57841f1be40b5daapl
docs say 3.24+ I thinksZanie
Casey Green
12/03/2021, 6:07 PMZanie
IntervalSchedule
fixes it, so I presume this is actually a UI bug.Zanie
Zanie
Casey Green
12/03/2021, 6:11 PMIntervalSchedule
also fixed it on my endCasey Green
12/03/2021, 6:11 PMZanie
Zanie
Vipul
12/04/2021, 10:56 AMCasey Green
12/09/2021, 5:51 PM$ python -c "import sqlite3; print(sqlite3.sqlite_version_info)"
(3, 28, 0)
$ sqlite3 -version
3.37.0 2021-11-27 14:13:22 bd41822c7424d393a30e92ff6cb254d25c26769889c1499a18a0b9339f5d6c8a
I think sqlite lib is loaded dynamically, so it must still be looking at the system install.Zanie
Zanie