Changeset e6957c5207c6…
Parent 51cec4d6604b…
by Ben McCormack <benm@fogcreek.com>
Changes to one file · Browse files at e6957c5207c6 Showing diff from parent 51cec4d6604b Diff from another changeset...
@@ -1,3 +1,5 @@ + ### Please contact Fog Creek support before running this script.
+###
### This function will churn through the Kiln queue manually. The QueueService
### should be turned off before running this script. Run this script like so:
###
@@ -18,7 +20,7 @@ $queueLength = $s -split (',') | foreach{if ($_ | select-string "queueLength" -quiet){ ($_ -split ":")[1]}}
return $queueLength
}
-function churn-queue(){
+function churn-queue([switch]$switchGetQueueLength){
pushd
cd "C:\Program Files\Kiln\queue"
# We want to stop the Kiln Queuing Service because we're going to be running it
@@ -38,7 +40,7 @@ sc.exe stop "KilnStorageService"
sc.exe start "KilnStorageService"
}
- $getQueueLength = $true
+ $getQueueLength = $switchGetQueueLength
# The following code is going to process the Queue Service manually, printing the
# output. Powershell is then piping the output as a stream, which is tested for
# various conditions to determine if the process is working.
|
Loading...