Add debugging checks to make sure all the active tasks are scheduled and that no inactive task is being run.