grantcarthew / node-rethinkdb-job-queue

A persistent job or task queue backed by RethinkDB.
https://github.com/grantcarthew/node-rethinkdb-job-queue/wiki
MIT License
156 stars 16 forks source link

Error stack trace in log entry #12

Closed TomKaltz closed 8 years ago

TomKaltz commented 8 years ago

Is there a way to have stack traces logged inside the database when the job fails with Error?

grantcarthew commented 8 years ago

Sure, just here I could put in the stack trace. https://github.com/grantcarthew/node-rethinkdb-job-queue/blob/ba7c971d8c5626005b74ea417138e2c27b17819a/src/job-failed.js#L28

Keep the improvements coming mate.

What project are you using this on?

TomKaltz commented 8 years ago

My project is automated video converting and uploading to Vimeo. About to put this thing in production. I will let you know how it goes. Been a pleasure taking this thing for a "spin". Great docs!

grantcarthew commented 8 years ago

Hi @TomKaltz, Just published v0.3.0. Added the stack and error messages to the log when next(err) is called.

Thanks again for your input.