{"repo":"breejs/bree","free":true,"listed":false,"github":"https://github.com/breejs/bree","clone":"git clone https://github.com/breejs/bree.git","description":"Bree is a Node.js and JavaScript job task scheduler with worker threads, cron, Date, and human syntax. Built for @ladjs, @forwardemail, @spamscanner, @cabinjs.","language":"JavaScript","stars":3290,"topics":["job","scheduler","node","cron","ms","human","simple","workers","sandboxed","processes"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Bree is the best job scheduler for Node.js and JavaScript with cron , dates , ms , later , and human-friendly support. Works in Node v12.17.0+, uses worker threads (Node.js) to spawn sandboxed processes, and supports async/await , retries , throttling , concurrency , and cancelable jobs with graceful shutdown . Simple, fast, and lightweight. Made for Forward Email and Lad . Table of Contents Foreword Install Upgrading Usage and Examples ECMAScript modules (ESM) CommonJS (CJS) Instance Options Job Options Job Interval and Timeout Values Listening for events Custom error/message handling Cancellation, Retries, Stalled Jobs, and Graceful Reloading Interval, Timeout, Date, and Cron Validation Writing jobs with Promises and async-await Callbacks, Done, and Completion States Long-running jobs Complex timeouts and intervals Custom Worker Options Using functions for jobs Typescript and Usage with Bundlers Concurrency Plugins Available Plugins Creating plugins for Bree Real-world usage Contributors License Foreword Bree was created to give you fine-grained control with simplicity, and has built-in support for workers, sandboxed processes, graceful reloading, cron jobs, dates, human-friendly time representations, and much more. We recommend you to query a persistent database in your jobs, to prevent specific operations from running more than once. Bree does not force you to use an additional database layer of [Redis][] or [MongoDB][] to manage job state. In doing so, you should manage ","default_branch":null,"files":null,"tree":[],"storefront":"/r/breejs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/breejs/bree/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."}