Grunt task to monitor DB and send notification?

Have a newbie question. We have been using grunt to run our builds for a node.js application.

This application requires a notification component which requires us to -

  • monitor reminders collection in mongodb.

  • if reminder due for a certain user(s), run through each of the reminder documents and send SMS or Email to the user.

  • Keep running the task.

For this type of use-case, is grunt suited? If not, what would be the right way to handle this with JS?

Any help appreciated.

Thanks Vic