[Swift-commit] r2204 - log-processing
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Wed Aug 27 04:05:38 CDT 2008
Author: benc
Date: 2008-08-27 04:05:38 -0500 (Wed, 27 Aug 2008)
New Revision: 2204
Added:
log-processing/get-replicationid-for-execute2id
Modified:
log-processing/annotate-karatasks-with-execute2-id
log-processing/makefile
Log:
annotate karatasks with replication id
Modified: log-processing/annotate-karatasks-with-execute2-id
===================================================================
--- log-processing/annotate-karatasks-with-execute2-id 2008-08-27 08:11:55 UTC (rev 2203)
+++ log-processing/annotate-karatasks-with-execute2-id 2008-08-27 09:05:38 UTC (rev 2204)
@@ -1,13 +1,15 @@
#!/bin/bash
# feed in karatasks.JOB_SUBMISSION.transitions and column 5 will be
-# made to be the execute2 id associated with that karajan task,
-# if there is such an association (not all execution tasks will be
+# made to be the execute2 id associated with that karajan task, column 6
+# with the replication group id.
+# (if there is such an association - not all execution tasks will be
# associated with an execute2)
# 1219781848.384 0-1-1219781848210 Active JOB_SUBMISSION
while read time karaid state type rest; do
exec2id=$(./get-jobid-for-karajanid $karaid)
- echo $time $karaid $state $type $exec2id $rest
+ replid=$(./get-replicationid-for-execute2id $exec2id)
+ echo $time $karaid $state $type $exec2id $replid $rest
done
Added: log-processing/get-replicationid-for-execute2id
===================================================================
--- log-processing/get-replicationid-for-execute2id (rev 0)
+++ log-processing/get-replicationid-for-execute2id 2008-08-27 09:05:38 UTC (rev 2204)
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# given an execute2 ID as $1, return the replication id (if any)
+
+# needs execute2.event to exist
+
+#1219825024.716 91.3469998836517 sleep-nkcz2kyi JOB_END 0-6-1 wonkyA ckcz2kyi
+
+grep -e "^[^ ]* [^ ]* $1 .*\$" execute2.event | cut -d ' ' -f 7
Property changes on: log-processing/get-replicationid-for-execute2id
___________________________________________________________________
Name: svn:executable
+ *
Modified: log-processing/makefile
===================================================================
--- log-processing/makefile 2008-08-27 08:11:55 UTC (rev 2203)
+++ log-processing/makefile 2008-08-27 09:05:38 UTC (rev 2204)
@@ -152,5 +152,5 @@
jobid-karajanid-bindings: $(LOG)
./extract-jobid-karajanid-bindings <$(LOG) >jobid-karajanid-bindings
-karatasks.JOB_SUBMISSION.annotated-execute2.transitions: karatasks.JOB_SUBMISSION.transitions
+karatasks.JOB_SUBMISSION.annotated-execute2.transitions: karatasks.JOB_SUBMISSION.transitions execute2.event
./annotate-karatasks-with-execute2-id < karatasks.JOB_SUBMISSION.transitions > karatasks.JOB_SUBMISSION.annotated-execute2.transitions
More information about the Swift-commit
mailing list