
Spawn headless worker meteor processes to work on async jobs.
Workers is an innovative package designed to simplify job handling within a Meteor application by allowing users to push jobs onto a Mongo-backed queue. This functionality enables a separate 'headless' Meteor process to asynchronously pick up and execute jobs, seamlessly integrating with the existing application code. The primary goal of this package is to maintain the familiar Meteor API, ensuring that developers can leverage their existing knowledge while adding robust job handling capabilities.
The self-contained deployment model makes it easy to implement without altering your current deployment strategy. With a straightforward interface that requires minimal configuration, Workers enhances productivity while maintaining the Meteor environment that developers know and love.
Easy Job Management: Allows developers to push jobs onto a Mongo-backed queue effortlessly, enabling asynchronous processing.
Familiar Code Structure: The job handler code behaves just like other application code, providing access to the same Meteor API and packages.
Self-Contained Deployment: Deploy your application without needing a separate deployment for handling jobs, streamlining the process.
Minimal Configuration: Set up and use the package quickly with a simple installation process and easy job handling capabilities.
Extendable Job Class: Extend the Job class and implement the handleJob method for customized job handling while automatically registering classes.
Cron Scheduling: Implement jobs on a scheduled basis using the synced-cron package, enhancing job execution flexibility.
Error Handling: Easily manage errors in job execution with the option to implement an afterJob method in the handler class.
Robust Configuration: Utilize the Meteor.settings API to set up background worker processes for efficient job handling across multiple servers.
