Moe
09/26/2024, 5:01 PMMarvin
09/26/2024, 5:01 PMprefect work-pool update
command is used for this purpose.
Here's how you can use the CLI to update a work pool:
bash
prefect work-pool update [OPTIONS] NAME
Where NAME
is the name of the work pool to update. Optional parameters can be used to specify updates.
Documentation: Prefect 3.x Work Pools
If renaming is not directly supported, you might need to delete the existing work pool and create a new one with the desired name, making sure to migrate any associated configurations.Moe
09/26/2024, 5:41 PMMarvin
09/26/2024, 5:41 PMprefect work-pool update
command, but this does not include renaming it.
Here is what you can do:
1. Create a new work pool with the desired name:
bash
prefect work-pool create [OPTIONS] NEW_NAME
2. Delete the existing work pool if it's no longer needed:
bash
prefect work-pool delete OLD_NAME
Please ensure to properly migrate any configurations and tasks associated with the old work pool to the new one before deletion.
Full details can be found in the Prefect 3.x documentation for work pools:
Prefect 3.x Work Pools
If you have further questions, feel free to ask!Moe
09/26/2024, 5:42 PMNate
09/26/2024, 5:46 PM