Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #115 from joeshaw/joeshaw-before-after-fixup

before_perform() & after_perform() should be called on class, not pass i...
  • Loading branch information...
commit 1e91087ac397527c7f23f751e56b11fd9c490227 2 parents b9fe2e4 + b003384
@binarydud authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 pyres/job.py
View
4 pyres/job.py
@@ -79,7 +79,7 @@ def perform(self):
check_after = True
try:
if before_perform:
- before_perform(payload_class, metadata)
+ payload_class.before_perform(metadata)
return payload_class.perform(*args)
except:
check_after = False
@@ -93,7 +93,7 @@ def perform(self):
finally:
after_perform = getattr(payload_class, "after_perform", None)
if after_perform and check_after:
- after_perform(payload_class, metadata)
+ payload_class.after_perform(metadata)
delattr(payload_class,'resq')
def fail(self, exception):
Please sign in to comment.
Something went wrong with that request. Please try again.