Skip to content

Commit

Permalink
This field should be a string according to resque -- display it as such.
Browse files Browse the repository at this point in the history
  • Loading branch information
chawco committed Mar 4, 2011
1 parent caf102c commit 65ae7d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resweb/views.py
Expand Up @@ -220,6 +220,7 @@ def failed_jobs(self):
import json
except ImportError:
import simplejson as json

jobs = []
for job in failure.all(self.resq, self._start, self._start + 20):
backtrace = job['backtrace']
Expand All @@ -228,7 +229,7 @@ def failed_jobs(self):
backtrace = '\n'.join(backtrace)

item = job
item['failed_at'] = str(datetime.datetime.fromtimestamp(float(job['failed_at'])))
item['failed_at'] = job['failed_at']
item['worker_url'] = '/workers/%s/' % job['worker']
item['payload_args'] = str(job['payload']['args'])
item['payload_class'] = job['payload']['class']
Expand Down

0 comments on commit 65ae7d9

Please sign in to comment.