| ns_job thread pool | |||
|---|---|---|---|
| maxthreads | numthread | numidle | req |
| $threadArr(maxthreads) | $threadArr(numthreads) | $threadArr(numidle) | $threadArr(req) |
| ns_job queue list | ||||
|---|---|---|---|---|
| name | desc | maxthread | numrunning | req |
| $queueArr(name) | $queueArr(desc) | $queueArr(maxthreads) | $queueArr(numrunning) | $queueArr(req) |
| $queueId | ||||||||
|---|---|---|---|---|---|---|---|---|
| id | state | type | request | script | results | time | starttime | endtime |
| $jobArr(id) | $jobArr(state) | $jobArr(type) | $jobArr(req) | $jobArr(script) | $jobArr(results) | $jobArr(time) ms | [clock format $jobArr(starttime) -format {%D %T}] | [clock format $jobArr(endtime) -format {%D %T}] |
| $queueId | ||||||||
|---|---|---|---|---|---|---|---|---|
| id | state | type | request | script | results | time | starttime | endtime |
| $jobArr(id) | $jobArr(state) | $jobArr(type) | $jobArr(req) | $jobArr(script) | $jobArr(results) | $jobArr(time) ms | [clock format $jobArr(starttime) -format {%D %T}] | [clock format $jobArr(endtime) -format {%D %T}] |
" if {[catch { foreach jobId $jobList { outputMsgLog "Job Id: $jobId \ Job Result: [ns_job wait $queueId $jobId]
" } } err]} { global errorInfo set savedInfo $errorInfo outputMsgLog "Failed to wait on job. Error Info: $errorInfo" return [rc.failure] } outputMsgLog "