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

Display work queue status details via CLI #11545

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

serinamarie
Copy link
Contributor

@serinamarie serinamarie commented Jan 3, 2024

Example

❯ prefect work-queue inspect d9181a64-c098-4e13-ad51-6d63141cd8fc
WorkQueue(
    id='d91...',
    created=DateTime(2023, 2, 2, 17, 39, 58, 692020, tzinfo=Timezone('+00:00')),
    updated=DateTime(2023, 12, 14, 14, 20, 58, 185706, tzinfo=Timezone('+00:00')),
    name='default',
    work_pool_name='default-agent-pool',
    work_pool_id='f8110b4f-f0db-4f10-b615-79081d6afc97',
    last_polled=DateTime(2023, 12, 14, 14, 19, 35, 193143, tzinfo=Timezone('+00:00'))
)
WorkQueueStatusDetail(
    healthy=False,
    last_polled=DateTime(2023, 12, 14, 14, 19, 35, 193143, tzinfo=Timezone('+00:00')),
    health_check_policy=WorkQueueHealthPolicy()
)

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, docs.

@serinamarie serinamarie added the enhancement An improvement of an existing feature label Jan 3, 2024
Copy link

netlify bot commented Jan 3, 2024

Deploy Preview for prefect-docs-preview ready!

Name Link
🔨 Latest commit 89f464c
🔍 Latest deploy log https://app.netlify.com/sites/prefect-docs-preview/deploys/6595dc1ab3dbf70008b9613e
😎 Deploy Preview https://deploy-preview-11545--prefect-docs-preview.netlify.app/api-ref/prefect/cli/work_queue
📱 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 configuration.

@serinamarie serinamarie linked an issue Jan 3, 2024 that may be closed by this pull request
3 tasks
@serinamarie serinamarie marked this pull request as ready for review January 3, 2024 22:24
@serinamarie serinamarie requested a review from a team as a code owner January 3, 2024 22:24
@serinamarie serinamarie changed the title Display work queue health status via CLI Display work queue status details via CLI Jan 3, 2024
Copy link
Collaborator

@zzstoatzz zzstoatzz left a comment

Choose a reason for hiding this comment

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

nice!

@serinamarie serinamarie merged commit 1898227 into main Jan 4, 2024
56 checks passed
@serinamarie serinamarie deleted the display-wq-status-via-cli branch January 4, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Work pool & work queue health status via CLI
2 participants