How to Programmatically Determine the Size of a Workflow's Queue and Detect When It's Empty?

This topic was automatically generated from Slack. You can find the original thread here.

Is there a way to tell programmatically how large a workflow’s queue is? Would be nice to have an event or trigger when a workflow’s queue is empty. Is there any way to determine this?

Checking the REST API doc here, I couldn’t see the APi allow you to do that. Maybe you can raise a Github Issue to request it, stating your usecase