Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
5a8f9694
Commit
5a8f9694
authored
Jul 27, 2016
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DO NOT MERGE debug print statements
parent
ded7057c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
playbooks/callback_plugins/task_timing.py
+6
-0
No files found.
playbooks/callback_plugins/task_timing.py
View file @
5a8f9694
...
...
@@ -62,6 +62,7 @@ class TimingLogger(object):
results (dict(string -> Timestamp)): a dict mapping task names
to Timestamps that measure how long each task took.
"""
print
(
'JZJZJZ in log_play for TimingLogger'
)
pass
...
...
@@ -95,7 +96,9 @@ class DatadogTimingLogger(TimingLogger):
return
value
.
replace
(
" | "
,
"."
)
.
replace
(
" "
,
"-"
)
.
lower
()
def
log_play
(
self
,
playbook_name
,
playbook_timestamp
,
results
):
print
(
'JZJZJZ in log_play for DatadogTimingLogger'
)
if
not
self
.
datadog_api_initialized
:
print
(
'JZJZJZ datadog_api_initialized was not True'
)
return
datadog_tasks_metrics
=
[]
...
...
@@ -134,7 +137,9 @@ class JsonTimingLogger(TimingLogger):
# N.B. This is intended to provide a consistent interface and message
# format across all of Open edX tooling, so it deliberately eschews
# standard python logging infrastructure.
print
(
'JZJZJZ in log_play for JsonTimingLogger'
)
if
ANSIBLE_TIMER_LOG
is
None
:
print
(
'JZJZJZ ANSIBLE_TIMER_LOG was None'
)
return
messages
=
[]
...
...
@@ -188,6 +193,7 @@ class LoggingTimingLogger(TimingLogger):
Log timing information for the play and the top 10 tasks to stdout.
"""
def
log_play
(
self
,
playbook_name
,
playbook_timestamp
,
results
):
print
(
'JZJZJZ in log_play for LoggingTimingLogger'
)
# Sort the tasks by their running time
results
=
sorted
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment