<@ULVA73B9P> Deployment 'AOSSB/aossb-etl-flow' suc...
# ask-marvin
a
@Marvin Deployment 'AOSSB/aossb-etl-flow' successfully created with id │ │ 'c0377f48-1aa6-4e2d-8f14-9c36bc3f4c93'. │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ View Deployment in UI: http://44.203.26.42:4200/deployments/deployment/c0377f48-1aa6-4e2d-8f14-9c36bc3f4c93 To schedule a run for this deployment, use the following command: $ prefect deployment run 'AOSSB/aossb-etl-flow' ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │ Deploying ardoyne-etl-flow │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ ? Your Prefect workers will need access to this flow's code in order to run it. Would you like your workers to pull your flow code from a remote storage location when running this flow? [y/n] (y): Traceback (most recent call last): File "/home/ubuntu/calval-etl/prefect_env/lib/python3.11/si i wnat to give n for all
m
thought for 6.4 seconds
I understand you want to skip the remote storage prompt during deployment by automatically answering "n" to the question about pulling flow code from remote storage. You can achieve this by using the
--no-remote-storage
flag when running the
prefect deploy
command. This will automatically answer "no" to the remote storage prompt. Here's how to do it:
Copy code
bash
prefect deploy --no-remote-storage
This flag tells Prefect that you want to use local storage for your flow code, meaning the code needs to be present on the worker machine directly rather than being pulled from a remote location. Remember that when using local storage: 1. Your flow code must be present on the worker machine in the correct location 2. The worker must have access to all required dependencies 3. The paths in your code should be consistent between the development and worker environments If you're seeing this prompt frequently and want to make this setting permanent, you can configure it in your Prefect settings using:
Copy code
bash
prefect config set PREFECT_DEFAULT_REMOTE_STORAGE=false
n
jeez that's not right
do
prefect --no-prompt ...
a
ok
@Nate
prefect deploy -all --no prompt?
n
no its a top level flag
it should always come after
prefect
a
ok
@Nate
prefect --no-prompt deploy --all
ok?
n
yep
a
ythanks
you saved me 😀
n
catjam
a
@Nate do you work at prefect?
n
yes
a
If so you should consider making deployment from windows / linux/mac to aws/azure resources much simpler som template codes are needed
please feel free to create a discussion on what you're looking for
a
cool sure i will , for past 2 years i have been eating on prefect 😃
@Nate is it
--no prompt
or
--no-prompt
?
n
Copy code
--no-prompt
a
refect --no-prompt deploy --all this was throwing error i tried , i had 60 flows it ran 2 correctly after that it thrown error