-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add WorkQueue.status
to server and client side schemas
#11829
Conversation
✅ Deploy Preview for prefect-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
WorkQueue.status
to server and client side schemas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
tests/client/test_prefect_client.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
This PR adds the
status
field toWorkQueue
objects and responses. The status is determined by the server when it receives a "poll" asking for aWorkQueue
object and is conditional on the recency of the work queue'slast_polled
field.Closes #11830
Example
Work Queue responses now include a status field, determined via
last_polled
andis_paused
:Checklist
<link to issue>
"maintenance
,fix
,feature
,enhancement
,docs
.