Skip to content
Browse files

Provide exception key for failed jobs.

  • Loading branch information...
1 parent 65ae7d9 commit 7c5e11da51608646c0dc8d70f8fff39ba19b0a75 @chawco committed
Showing with 4 additions and 1 deletion.
  1. +1 −0 pyres/failure/redis.py
  2. +3 −1 resweb/templates/failed.mustache
View
1 pyres/failure/redis.py
@@ -12,6 +12,7 @@ def save(self, resq=None):
data = {
'failed_at' : datetime.datetime.now().strftime('%Y/%m/%d %H:%M:%S'),
'payload' : self._payload,
+ 'exception' : self._exception.__class__.__name__,
'error' : self._parse_message(self._exception),
'backtrace' : self._parse_traceback(self._traceback),
'queue' : self._queue
View
4 resweb/templates/failed.mustache
@@ -41,10 +41,12 @@ function delete_all(){
<dd><code>{{payload_class}}</code></dd>
<dt>Arguments</dt>
<dd><pre>{{payload_args}}</pre></dd>
+ <dt>Exception</dt>
+ <dd><pre>{{exception}}</pre></dd>
<dt>Error</dt>
<dd>
<a href="#" class="backtrace">{{error}}</a>
- <pre style='display:none'>{{traceback}}</pre>
+ <pre style='display:none'>{{traceback}}</pre>
</dd>
<dt>
Payload Actions

0 comments on commit 7c5e11d

Please sign in to comment.
Something went wrong with that request. Please try again.