staticnotdynamic
11/23/2024, 5:52 PMstaticnotdynamic
11/23/2024, 5:55 PMgit push
or aws s3 cp <src> <dst>
for example), then do prefect deploy
Is there any better workflow ?Nate
11/23/2024, 7:08 PMpull
step (for prefect.yaml)
• from_source
(for .deploy)
if you're baking code into your image, its a slightly different story, but that doesnt sound like your case here
so yeah you have to git push
or otherwise push your code to the remote storage, bc the deployment only knows how to pull from the remote location you specified
but we have a step for pushing to buckets like s3 already if you're using prefect.yamlstaticnotdynamic
11/23/2024, 7:18 PMprefect deploy
(this talks to a remote prefect instance) and have this in our prefect.yaml (as you mentioned):
pull:
- prefect.deployments.steps.git_clone:
repository: <https://github.com/org/repo>
credentials: '{{ prefect.blocks.github-credentials.gh-creds }}'
Thus, for every tiny code change that we would like to test, we save the flie (Ctrl+S), git push
, then prefect deploy
to instantiate a flow run and see the output. It's not convenient so we thought (dev team and I) if there's something better. I will look into push
step.
> if you're baking code into your image, its a slightly different story, but that doesnt sound like your case here
Right, it's not our case here. We have a remote k8s worker that we use during development with a custom image.Nate
11/23/2024, 7:33 PMstaticnotdynamic
11/23/2024, 7:34 PMpush_to_s3
Nate
11/23/2024, 7:36 PMNate
11/23/2024, 7:36 PMstaticnotdynamic
11/23/2024, 7:38 PMNate
11/23/2024, 7:48 PM