mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 17:23:09 +00:00
Merge pull request #11626 from halberom/fix_profile_tasks
profile_tasks.py requires CALLBACK_ constants or the v2 code doesn't pass the …
This commit is contained in:
@@ -58,7 +58,14 @@ def tasktime():
|
||||
|
||||
|
||||
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):
|
||||
self.stats = {}
|
||||
self.current = None
|
||||
|
||||
Reference in New Issue
Block a user