-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix bug where paused work queues getting unpaused and set to active on worker poll #14082
Fix bug where paused work queues getting unpaused and set to active on worker poll #14082
Conversation
@@ -374,7 +374,7 @@ async def get_scheduled_flow_runs( | |||
|
|||
polled_work_queue_ids = [wq.id for wq in work_queues] | |||
ready_work_queue_ids = [ | |||
wq.id for wq in work_queues if wq.status != WorkQueueStatus.READY |
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.
when wq.status == WorkQueueStatus.PAUSED
, this is erroneously setting those work queues to READY
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.
Great find! Do we have a simiarl issue in Prefect Cloud as well, or does it use a different mechanism?
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.
Should be good.
I'm still looking into another closely related issue, but this should fix one bug.
@@ -374,7 +374,7 @@ async def get_scheduled_flow_runs( | |||
|
|||
polled_work_queue_ids = [wq.id for wq in work_queues] | |||
ready_work_queue_ids = [ | |||
wq.id for wq in work_queues if wq.status != WorkQueueStatus.READY |
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.
Great find! Do we have a simiarl issue in Prefect Cloud as well, or does it use a different mechanism?
This PR fixes a bug (regression from #13117) where a paused work queue gets automatically unpaused on worker poll.
Closes #13935
Checklist
<link to issue>
"maintenance
,fix
,feature
,enhancement
,docs
.For documentation changes:
mint.json
for files that are removed or renamed.For new functions or classes in the Python SDK:
docs/mint.json
navigation.