Add an empty / drain trigger to Azure Storage Queues
Currently there seems to be no easy way to run code as soon as a Storage Queue has been emptied. It would be great to have an empty or drain trigger to call a different Azure Function for some pre-processing of batch jobs.
This remains unplanned.
Ken Reneris commented
I'm looking for the same sort of thing. I want to setup a queue specifically for enqueuing a lot of work (40K items). The per-item processing is variable from a few seconds to many minutes. I'd like to know when they are completed to proceed to the next stage of processing.
In my case, there would not be any expected new items to arrive at this processing stage so I would use a low-timeout. (but waiting a minute wouldn't be problem.. so the perf on the "is empty" is not a large concern in this case)
Thomas Pentenrieder commented
i guess it would make sense to have a configurable "timeout" variable like "trigger this, when the last run was longer than one minute ago.