Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use worker_pool_name and worker_pool_queue_name in deployment API endpoints. #8031

Merged
merged 6 commits into from
Jan 6, 2023

Conversation

desertaxle
Copy link
Member

@desertaxle desertaxle commented Jan 3, 2023

Updates deployment API endpoints to return worker_pool_name and worker_pool_queue_name to better align with worker pool and worker pool queue GET endpoints that use names.

Updates deployment create and update API endpoints to accept worker_pool_name and worker_pool_queue_name to eliminate need for clients to interact with IDs for worker pools or worker pool queues.

See #8012 for a similar implementation for flow runs.

Example

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
    • If no issue exists and your change is not a small fix, please create an issue first.
  • This pull request includes tests or only affects documentation.
  • This pull request includes a label categorizing the change e.g. fix, feature, enhancement

@netlify
Copy link

netlify bot commented Jan 3, 2023

Deploy Preview for prefect-orion ready!

Name Link
🔨 Latest commit 87e3ada
🔍 Latest deploy log https://app.netlify.com/sites/prefect-orion/deploys/63b82f4de6b0060009980d50
😎 Deploy Preview https://deploy-preview-8031--prefect-orion.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@desertaxle desertaxle added the maintenance Chores and other work not directly related to the product label Jan 3, 2023
@desertaxle desertaxle marked this pull request as ready for review January 3, 2023 14:20
@desertaxle desertaxle changed the title Return worker_pool_name and worker_pool_queue_name from deployment API endpoints. Use worker_pool_name and worker_pool_queue_name in deployment API endpoints. Jan 3, 2023
Copy link
Member

@cicdw cicdw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few minor questions about pool name vs. queue name logic

src/prefect/orion/api/deployments.py Show resolved Hide resolved
src/prefect/orion/models/deployments.py Show resolved Hide resolved
src/prefect/orion/schemas/responses.py Show resolved Hide resolved
tests/orion/api/test_deployments.py Show resolved Hide resolved
@desertaxle desertaxle requested a review from cicdw January 5, 2023 12:47
@desertaxle desertaxle mentioned this pull request Jan 6, 2023
3 tasks
@desertaxle desertaxle force-pushed the wp-and-wpq-names-deployments-api branch from c51e1d8 to f0a0acf Compare January 6, 2023 13:07
Copy link
Contributor

@peytonrunyan peytonrunyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable given my limited understanding of API design.

@desertaxle desertaxle merged commit 5650a4f into main Jan 6, 2023
@desertaxle desertaxle deleted the wp-and-wpq-names-deployments-api branch January 6, 2023 19:36
github-actions bot pushed a commit that referenced this pull request Jan 6, 2023
github-actions bot pushed a commit that referenced this pull request Jan 6, 2023
masonmenges pushed a commit that referenced this pull request Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Chores and other work not directly related to the product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants