Scheduled bots getting work from database.. getting useful analytics of work done not just scheduled runs

In our setup the work to the bots is submitted/ saved to a database. The bots poll the database at scheduled intervals for work and do the work if they find any.

The problem I have is - the in built alerts/ analytics all go by scheduled runs - so if the scheduled bot ran every 10 min - at the end of the hour it says - 6 successful runs. However, often only one or two runs actually found work to process. In most cases the bot instance logs - “No inputs in DB”

I would like to figure a way to remove all runs where the bot didn’t find work - i.e. “No inputs in DB” and only report on success/ failure of runs where there was an unit of work to process.

Thanks