You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a new job queue backed by MongoDB.
This issue is to list items that could improve rethinkdb-job-queue that pop into mind whilst working on the new queue.
I don't plan on implementing these changes, they are for someone else who want's to upgrade this package.
Move DB Connection Function
Move the database connection from the constructor to a queue.connect() method. This allows to user to receive the returned promise and respond to errors.
Retry the DB Connection
If the database becomes disconnected, instead of crashing, go into a pause state and retry the connection periodically.
Prevent Exceptions
This is a module within a larger application. It should not bring down the application if something goes wrong. Add options to log rather than throw exceptions.
Place Job Data into a Job.data Property
Change the way jobs are created to put the user data into an extra property such as data. This separates job attributes from work to be done.
The text was updated successfully, but these errors were encountered:
Improvements for the queue
I am working on a new job queue backed by MongoDB.
This issue is to list items that could improve rethinkdb-job-queue that pop into mind whilst working on the new queue.
I don't plan on implementing these changes, they are for someone else who want's to upgrade this package.
Move DB Connection Function
Move the database connection from the constructor to a
queue.connect()
method. This allows to user to receive the returned promise and respond to errors.Retry the DB Connection
If the database becomes disconnected, instead of crashing, go into a pause state and retry the connection periodically.
Prevent Exceptions
This is a module within a larger application. It should not bring down the application if something goes wrong. Add options to log rather than throw exceptions.
Place Job Data into a
Job.data
PropertyChange the way jobs are created to put the user data into an extra property such as
data
. This separates job attributes from work to be done.The text was updated successfully, but these errors were encountered: