- Timestamp:
- Mar 24, 2020 4:50:54 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/lang/tcl/scripts/task.tcl
r6710 r6715 253 253 success 0 254 254 xmlobj "" 255 squid "" 255 256 } 256 257 … … 258 259 259 260 set helperEligible [IsCacheHelperEligible] 261 if { [info exists env(WHIMRC)] } { 262 set helperEligible 0 263 } 260 264 261 265 set driverFile [GetDriverFile] … … 274 278 } 275 279 global env 280 if { $helperEligible } { 281 if { $_job(squid) != "" } { 282 set ::env(RAPPTURE_CACHE_SQUID) $_job(squid) 283 } 284 } 285 # puts stderr "RAPPTURE_CACHE_SQUID = $::env(RAPPTURE_CACHE_SQUID)" 276 286 if { $_uq(type) == "" } { 277 287 if { $helperEligible } { … … 293 303 return [list 1 $mesg] 294 304 } 295 Rappture::rusage mark 305 296 306 if { ![ExecuteSimulationCommand $cmd] } { 297 307 return [list 1 $_job(mesg)] … … 908 918 foreach key [array names data] { 909 919 # Add anything else that the client gave -- venue, etc. 910 lappend details $key $data($key) 920 if { $data($key) != "" } { 921 lappend details $key $data($key) 922 } 911 923 } 912 924 … … 975 987 "cputime" 0 \ 976 988 "status" 0 989 if { $_job(squid) != "" } { 990 lappend args "squid" $_job(squid) 991 } 977 992 uplevel #0 $jobstats $args 978 993 } … … 1002 1017 cputime 0 1003 1018 status 0 1019 squid "" 1004 1020 } 1005 1021 foreach arg [lrange [string range $_job(stderr) $p0 $p1] 1 end] { … … 1021 1037 foreach key [array names data] { 1022 1038 # Add anything else that the client gave -- venue, etc. 1023 lappend details $key $data($key) 1039 if { $data($key) != "" } { 1040 lappend details $key $data($key) 1041 } 1024 1042 } 1025 1043 … … 1073 1091 1074 1092 itcl::body Rappture::Task::LogCachedSimulationUsage {} { 1093 Rappture::rusage mark 1094 array set times [Rappture::rusage measure] 1095 1096 if { [string length $jobstats] > 0} { 1097 set recordJobstats 1 1098 if { [info exists _resources(-cacheuser)] } { 1099 global env 1100 if { $env(USER) eq $_resources(-cacheuser) } { 1101 set recordJobstats 0 1102 } 1103 } 1104 if { $recordJobstats } { 1105 if { $_uq(type) != "" } { 1106 if { [string length $jobstats] > 0} { 1107 lappend args "job" [incr jobnum] \ 1108 "event" "\[click-uq\]" \ 1109 "start" $times(start) \ 1110 "walltime" 0 \ 1111 "cputime" 0 \ 1112 "status" 0 \ 1113 "squid" $_job(squid) 1114 uplevel #0 $jobstats $args 1115 } 1116 } else { 1117 lappend args "job" [incr jobnum] \ 1118 "event" "\[click\]" \ 1119 "start" $times(start) \ 1120 "walltime" 0 \ 1121 "cputime" 0 \ 1122 "status" 0 \ 1123 "squid" $_job(squid) 1124 uplevel #0 $jobstats $args 1125 } 1126 } 1127 } 1128 1075 1129 if { [catch { 1076 1130 Rappture::library $_job(runfile) … … 1110 1164 } 1111 1165 } 1166 set _job(squid) $squid 1167 1112 1168 # puts stderr "SQUID = $headers(etag)" 1113 1169 # puts stderr "SQUID = $squid"
Note: See TracChangeset
for help on using the changeset viewer.