Commit 00760fa5 authored by fwinkler's avatar fwinkler

Grep for errors and show three lines before the match.

parent 60394546
...@@ -43,7 +43,7 @@ function check_debug() ...@@ -43,7 +43,7 @@ function check_debug()
email_text=/tmp/pika_pp_email.txt email_text=/tmp/pika_pp_email.txt
touch ${email_text} touch ${email_text}
egrep -i "error|failed" $DEBUG_PATH >> ${email_text} egrep -i -B 3 "error|failed" $DEBUG_PATH >> ${email_text}
#check size of mail text #check size of mail text
email_text_size=$(stat -c%s "${email_text}") email_text_size=$(stat -c%s "${email_text}")
......
...@@ -165,7 +165,7 @@ def main(start, end): ...@@ -165,7 +165,7 @@ def main(start, end):
all_meta_data = get_all_metadata(mariadb_connection, start, end) all_meta_data = get_all_metadata(mariadb_connection, start, end)
for meta_data in all_meta_data: for meta_data in all_meta_data:
print ("--") # print ("--")
# print (meta_data['UID']) # print (meta_data['UID'])
# print (meta_data['JID']) # print (meta_data['JID'])
# print (meta_data['START']) # print (meta_data['START'])
...@@ -184,7 +184,7 @@ def main(start, end): ...@@ -184,7 +184,7 @@ def main(start, end):
# print ("Job ID: ", meta_data['JID']) # print ("Job ID: ", meta_data['JID'])
for partition in partition_max_metric: for partition in partition_max_metric:
if partition in meta_data['PARTITION']: if partition in meta_data['PARTITION']:
print (partition) # print (partition)
# check for memory bound # check for memory bound
# print (" Memory bound:") # print (" Memory bound:")
# print (" Measured: ", meta_data['MEM_BW']) # print (" Measured: ", meta_data['MEM_BW'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment