mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 07:18:13 +08:00
hooks now work
refactored task as dict instead of list for readability.
This commit is contained in:
@@ -7,3 +7,7 @@ def countdown(n):
|
||||
n -= 1
|
||||
stop_time = time.time()
|
||||
return stop_time - start_time
|
||||
|
||||
|
||||
def result(obj):
|
||||
print('RESULT HOOK: {}'.format(obj.result))
|
||||
|
||||
Reference in New Issue
Block a user