"To Do Tasks" report is not updating

pending tasks can also be reason to no new task generated, it is one of the reason might be.
rather a search query to get tasks you can use api call