socialpandas / sidekiq-superworker

Directed acyclic graphs of Sidekiq jobs
MIT License
438 stars 34 forks source link

Error thrown from a superworker doesn't provide enough information about the error being thrown #32

Open rajeshkp opened 10 years ago

rajeshkp commented 10 years ago

The debug log provides very minimal information about the error thrown, is there a way for the superworker to provide a gist of the exception being thrown from the debug logs.

    Superworker.debug "JID ##{item['jid']}: Error thrown"
    subjob = find_subjob_by_jid(item['jid'])
    SubjobProcessor.error(subjob, worker, item, exception) if subjob