Constantino Schillebeeckx
11/27/2023, 5:41 PMprefect deploy --all
and I have multiple flows defined in my prefect.yaml
will the build/push steps get executed only once for all flows (since they all share those actions), or does build/push get executed for every flow?
From my initial testing, I'm seeing:
> Running push_to_s3 step...
executed once for every flow (I haven't tested build
yet), which doesn't quite make sense to me since a single push should be enough for all flows.Kevin Grismore
11/27/2023, 10:31 PMpush: null
on all but one of the deployments in your file, and let the one remaining deployment use the global push
, or
⢠set the global push
to null
and have push_to_s3
on just one deploymentConstantino Schillebeeckx
11/27/2023, 10:34 PMbuild
?Kevin Grismore
11/27/2023, 10:35 PMConstantino Schillebeeckx
11/27/2023, 10:36 PMKevin Grismore
11/27/2023, 10:36 PMprefect deploy --all
being run? maybe we can come up with something that feels a little less silly than my generic answerConstantino Schillebeeckx
11/27/2023, 10:38 PMmaster
should deploy all flows; all the flows use the same S3 storage and the same docker image.Constantino Schillebeeckx
11/27/2023, 10:40 PMConstantino Schillebeeckx
11/27/2023, 10:40 PMKevin Grismore
11/27/2023, 10:41 PMKevin Grismore
11/27/2023, 10:42 PMKevin Grismore
11/27/2023, 10:43 PMKevin Grismore
11/27/2023, 10:44 PMConstantino Schillebeeckx
11/27/2023, 10:45 PMConstantino Schillebeeckx
11/27/2023, 10:46 PMConstantino Schillebeeckx
12/04/2023, 3:55 PMname: foo
prefect-version: 2.13.7
build: null
push:
- prefect_aws.deployments.steps.push_to_s3:
id: push_code
requires: prefect-aws>=0.3.4
bucket: '{{ $STORAGE_BUCKET }}'
folder: '{{ $STORAGE_PREFIX }}'
pull:
- prefect_aws.deployments.steps.pull_from_s3:
id: pull_code
requires: prefect-aws>=0.3.4
bucket: '{{ push_code.bucket }}'
folder: '{{ push_code.folder }}'
deployments:
- name: DE
push: null
version: null
tags: [DE]
description: null
schedule: {}
entrypoint: hs_de_workflows/flows/hello_world.py:hello_world
parameters: {}
work_pool:
name: ecs-staging
work_queue_name: null
job_variables:
memory: 1024
container_name: hello_world
cpu: 512
- name: DE
push: null
version: null
tags: [DE]
description: null
schedule: {}
entrypoint: hs_de_workflows/flows/hello.py:hello
parameters: {}
work_pool:
name: ecs-staging
work_queue_name: null
job_variables:
memory: 1024
container_name: hello_world
cpu: 512
you'll notice i've set push: null
on both flows; yet when I deploy, I still two logging statements like
Running push_to_s3 stepwhich tells me it's still pushing; what am I missing?
Constantino Schillebeeckx
12/04/2023, 4:28 PM⢠set the globaldoes work (only a single push occurs)topush
and havenull
on just one deploymentpush_to_s3
Kevin Grismore
12/04/2023, 4:30 PMKevin Grismore
12/04/2023, 4:30 PM