Skip to content

Commit

Permalink
Rename Worker pools -> work pools (#8107)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Streed <[email protected]>
  • Loading branch information
2 people authored and zanieb committed Feb 3, 2023
1 parent f8a800a commit 552bc56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/prefect/client/orion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1309,8 +1309,8 @@ async def create_deployment(
parameters=dict(parameters or {}),
tags=list(tags or []),
work_queue_name=work_queue_name,
worker_pool_name=worker_pool_name,
worker_pool_queue_name=worker_pool_queue_name,
work_pool_name=work_pool_name,
work_pool_queue_name=work_pool_queue_name,
description=description,
storage_document_id=storage_document_id,
path=path,
Expand Down
6 changes: 3 additions & 3 deletions src/prefect/orion/database/orm_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,11 +1101,11 @@ def work_pool(cls):
)

@declared_attr
def worker_pool(cls):
def work_pool(cls):
return sa.orm.relationship(
"WorkerPool",
"WorkPool",
lazy="joined",
foreign_keys=[cls.worker_pool_id],
foreign_keys=[cls.work_pool_id],
)


Expand Down

0 comments on commit 552bc56

Please sign in to comment.