Ammar
01/31/2025, 4:08 AMgit push
first and then prefect deployment run
? At the moment, what I know, I need to git push
any update first, before I can prefect deployment run.
If possible, I just want to try run my flow first without git push to my Github repo. Is this possible? Or this is the nature of Prefect where I need to git push
first to try deploy?Nate
01/31/2025, 5:32 AMimport sys
from prefect import flow
@flow
def foo(): ...
if __name__ == "__main__":
if len(sys.argv) == 1:
foo()
elif sys.argv[1] == "deploy":
foo.from_source(...).deploy(...)
python filename.py
will run the flow
python filename.py deploy
will deploy the flowAmmar
02/07/2025, 2:55 AMprefect deployment run 'main-flow/rapid-deployment'
, it will take my code from my remote repo, not my local. I want it trigger from my local code.Ammar
02/07/2025, 2:56 AM.from_source()
is for remote URL link right? Is it possible to make the source from localAmmar
02/07/2025, 2:57 AMAmmar
02/07/2025, 2:58 AMtag
arg, it will create a duplicate dir of my current project with the tag as suffix.Nate
02/07/2025, 2:59 AMAmmar
02/07/2025, 3:01 AMAmmar
02/07/2025, 3:01 AM