Ben Muller
10/31/2022, 10:33 PMprefect run -p test_flow.py
Is this an option in 2.0 on the cli? or do I have to initate through python every time?Ryan Peden
10/31/2022, 10:42 PMpython
.
I believe the Prefect 1 CLI's run
command could also pull a flow from storage and run it and for that, prefect deployment run
is somewhat similar.Ben Muller
10/31/2022, 10:45 PMrun
pulls anything from storage - it just executes locally. ( in 1.0 )
I am surprised we can not run flows locally from the cli in 2.0 😢Nate
10/31/2022, 10:50 PMpython my_flow.py
(and are connected to your cloud workspace) and run the flow locally, it'll still show in the UI
and in prefect 1, running prefect run
still pulls from storage, but if you didn't configure storage, it defaulted to LocalStorage so it didn't feel like it was pulling from anywhereBen Muller
10/31/2022, 10:51 PMNate
10/31/2022, 10:54 PMpython my_flow.py
and that should serve the same needs as prefect run
in 1.0Ben Muller
10/31/2022, 10:55 PMNate
10/31/2022, 10:57 PMBen Muller
10/31/2022, 10:57 PMfrom prefect import flow
@flow
def my_favorite_function():
print("What is your favorite number?")
return 42
print(my_favorite_function())
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) duplicate column name: slug
[SQL: ALTER TABLE block_type ADD COLUMN slug VARCHAR]
(Background on this error at: <https://sqlalche.me/e/14/e3q8>)
Nate
10/31/2022, 10:58 PMrm -rf ~/.prefect/orion.db && prefect orion database reset -y
Ben Muller
10/31/2022, 10:58 PMNate
10/31/2022, 10:58 PMBen Muller
10/31/2022, 10:58 PM