{"repo":"TNG/momo-scheduler","free":true,"listed":false,"github":"https://github.com/TNG/momo-scheduler","clone":"git clone https://github.com/TNG/momo-scheduler.git","description":"A scheduler that persists jobs in MongoDB","language":"TypeScript","stars":21,"topics":["scheduler","scheduling","job-scheduler","hacktoberfest"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Momo scheduler Momo is a light-weight, easy-to-use scheduler that persists jobs in a MongoDB and supports interval-based scheduling as well as cron jobs. In essence, it provides an easy way to tell your application to either \"run that job every five minutes\" or \"run that job at 9 AM every weekday\". Features - allows concurrent jobs - allows immediate jobs - supports long-running jobs - allows error handling - supports cluster mode (e.g. several instances using the same job database) - only one schedule per name will attempt to schedule jobs - if an active schedule stops running (e.g. the application instance was stopped), another schedule with the same name (e.g. running on a different instance) will take over Installation Install via npm: or yarn: You're all set! Usage MomoJob You can instantiate a momo job using the MomoJobBuilder class. It provides the following setter methods: setter parameter mandatory default value description ------------------ -------------------------------------------------------------------------------- ----------- --------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/TNG","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/TNG/momo-scheduler/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}