callbacks require a version constant or the v2 code doesn't pass the display param and it gives an error
This commit is contained in:
parent
6ba706f753
commit
a6c8d30f3e
1 changed files with 8 additions and 1 deletions
|
@ -58,6 +58,13 @@ def tasktime():
|
||||||
|
|
||||||
|
|
||||||
class CallbackModule(CallbackBase):
|
class CallbackModule(CallbackBase):
|
||||||
|
"""
|
||||||
|
This callback module provides per-task timing, ongoing playbook elapsed time
|
||||||
|
and ordered list of top 20 longest running tasks at end.
|
||||||
|
"""
|
||||||
|
CALLBACK_VERSION = 2.0
|
||||||
|
CALLBACK_TYPE = 'aggregate'
|
||||||
|
CALLBACK_NAME = 'profile_tasks'
|
||||||
|
|
||||||
def __init__(self, display):
|
def __init__(self, display):
|
||||||
self.stats = {}
|
self.stats = {}
|
||||||
|
|
Loading…
Reference in a new issue