Zhang David
07/01/2024, 5:46 PMNate
07/01/2024, 5:52 PMprefect deploy foo.py:bar --pool a
prefect deploy foo.py:bar --pool b
Zhang David
07/01/2024, 5:58 PMZhang David
07/01/2024, 6:00 PM- name: <deployment_name>
version: null
tags: *default_tags
description: "a deployment"
schedule:
cron: 16 09 * * 1-5
timezone: America/New_York
entrypoint: <PYTHON_FILE>.py:FUNC_NAME
parameters:
work_pool:
name: *pool_A
work_queue_name: default
job_variables: {}
Zhang David
07/01/2024, 6:00 PMZhang David
07/01/2024, 6:01 PMpool_B
for the same $deployment_name. Physically, in my case, pool_A
represent processes on one server, and pool_B
represent processes on a different serverNate
07/01/2024, 6:23 PMprefect.yaml
file right?
you wouldnt be able to add a second work pool for the same exact deployment definition, but you could add another definition just like that one that points at pool_B
insteadZhang David
07/01/2024, 6:24 PMthats ayesfile right?prefect.yaml
you wouldnt be able to add a second work pool for the same exact deployment definition, but you could add another definition just like that one that points atso i have to dup it basicallyinsteadpool_B
Nate
07/01/2024, 6:24 PMZhang David
07/01/2024, 6:26 PM