Robert Banick
03/25/2024, 5:58 PMNate
03/25/2024, 6:04 PM• Am I correct to assume that you all expect a 1-to-1 relationship between workers and infrastructure types?yes* if you by "workers" you mean "worker types" (i.e. ECS, k8s etc) - you can have many ECS workers running in your workpace, for example
• Is there any way to set a single worker to listen to multiple work pools?no - not work pools, but many work queues from the same pool. when you say
~15 types of infrastructure (over AWS) with varying frequencydo you mean 15 configurations of something like EKS / ECS, or you mean like distinct runtime services like lambda, batch ecs, ec2 etc
Nate
03/25/2024, 6:05 PMRobert Banick
03/25/2024, 6:10 PMNate
03/25/2024, 6:11 PMNate
03/25/2024, 6:13 PMLaunch Type (Optional)
on a deployment basis, idk not an expert on ECSRobert Banick
03/25/2024, 6:14 PMpublish_as_work_pool
.
Currently each type of infrastructure I use is one infrastructure block. Is the idea to transform the settings corresponding to those infrastructure blocks — memory, CPU, image name, etc. — into a series of overrides I pass to the deployment?Nate
03/25/2024, 6:15 PMwork pools are the inheritors of infrastructure blocksthis is the case on work pools in general you start with the work pools default job template
Nate
03/25/2024, 6:16 PMNate
03/25/2024, 6:17 PMNate
03/25/2024, 6:17 PMRobert Banick
03/25/2024, 6:18 PMNate
03/25/2024, 6:18 PM.deploy
instead of prefect.yaml
if thats what you preferRobert Banick
03/25/2024, 6:19 PMRobert Banick
03/25/2024, 6:21 PMNate
03/25/2024, 6:21 PMNate
03/25/2024, 6:23 PMfrom_source
thing if you have the @flow
decorated function in hand, thats just a way to scoop the flow object from a remote location if needed
in general you just need to have a @flow
decorated function to call its .deploy()
methodRobert Banick
03/25/2024, 6:31 PM@flow(name="Charlie")
def my_flow():
# flow code
and then I import my_flow
into a separate deployment file, I can run my_flow.deploy()
without bothering with from_source
?Nate
03/25/2024, 7:20 PM