Skip to content

Conversation

maxdml
Copy link
Collaborator

@maxdml maxdml commented Aug 28, 2025

Add a new option to ListWorkflows to filter for "queues only".

Note that this implements our defaults: when queues only is requested, we only return PENDING and ENQUEUED workflows. But this implementation will respect any provided filter, for maximum flexibility. (You can query all SUCCESS tasks across all queues.)

}
}

req.Status = "" // We are not expecting a filter here but clear just in case
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because the console never passes a status, I previously just dismissed any status filter received on the queues endpoint. I think this is wrong, so this PR only sets enqueued/pending if no status is present in the request.

@maxdml maxdml marked this pull request as ready for review August 28, 2025 22:40
@maxdml maxdml merged commit 1800a4b into main Aug 28, 2025
4 checks passed
@maxdml maxdml deleted the list-wf-queue-sql branch August 28, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants