binarydud/pyres — pull request #120 by wesrog (2012-10-12 21:13:03+00:00)
Title: Add exception to metadata dictionary if job fails for use in after_perfo...

We log our exception data and this seemed like an elegant way to do so. In our case, we wanted to log the exception only if it happened on the first try, so:

```python
@staticmethod
def after_perform(metadata):
if metadata['failed'] and not metadata['retried']:
log_error(metadata['exception'])
```

Thanks for pyres!