sqlboi
08/31/2023, 8:32 PM(job) root@f469932fdcb1:/job# prefect deploy listval/main.py:validate_list
? Would you like to use an existing deployment configuration? [Use arrows to move; enter to select; n to select none]
┏━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃ Name ┃ Entrypoint ┃ Description ┃
┡━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ > │ {{ $LIST_NAME }} │ listval/main.py:validate_list │ {{ $LIST_DESCRIPTION }} │
└───┴──────────────────┴───────────────────────────────┴─────────────────────────┘
im using the prefect.yml
fileroot@f758eb182396:/job# prefect deploy listval/main.py:validate_list --name ${LIST_NAME}
The following deployment(s) could not be found and will not be deployed: "podman_test"
Could not find any deployment configurations with the given name(s): "podman_test". Your flow will be deployed with a new deployment configuration.
starting flow
starting flow
? Would you like to schedule when this flow runs? [y/n] (y): ^C
Aborted.
Serina
09/01/2023, 3:47 PM--no-prompt
during prefect deploy
to disable interactive mode (e.g. prefect --no-prompt deploy
, which could be useful for you in future. I’ll add this to our documentation as well. You can also change this setting via the PREFECT_CLI_PROMPT
.
Additionally, passing in the args via prefect deploy
, e.g. prefect deploy -n $my-deployment-name
or something like that could be useful to you.sqlboi
09/07/2023, 1:00 PMTry 'prefect deploy --help' for help.
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ No such option: --tags Did you mean --tag? │
╰──────────────────────────────────────────────────────────────────────────────╯
when using --tags ${LIST_TAGS}
which are: "LIST_TAGS=[Tag1,Tag2]"
Serina
09/07/2023, 2:02 PMNo such option: --tags Did you mean --tag?
The error message specifies to use --tag
🙂
You can check out all available commands at prefect deploy --help
sqlboi
09/07/2023, 2:03 PM--tag
😕 did it one by one like --tag blahblah
and --tag "blahblah"
"pipenv run prefect --no-prompt deploy main.py:validate_list --name ${LIST_NAME} --description ${LIST_DESCRIPTION} --tag ${LIST_TAGS}"
it's kind of annoying to go tag by tag so will stick to bash 😕