Document Id/Key, if it is in scheduled state

I have a requirement where I need to skip publishing those documents which are in scheduled state. How do we check if a document is in this scheduled state, what will be the key/ id or condition for the same.
Any pointers on this will be great help.
Thanks in advance.

Hi @sonal

When you add a scheduled event in a document, a new node hippo:request of type hipposched:workflowjob is created in the repository.
I guess you can querying all documents of this type for an specific folder and remove it.

Best regards.