Refactoring some pieces to make cron work a bit smoother
Adding is_completed check back into untraversed tasks query