Kiln » KilnSupportScripts Powershell Scripts to help monitor a Kiln environment. Contact Fog Creek support before using. Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

getting the queue length after an exception seems to cause problems. Put it into a switch to be more explicit about whether or not we want to get the queue length. Also added a message about contacting customer service before running the script.

Changeset e6957c5207c6

Parent 51cec4d6604b

by Profile picture of User 476Ben McCormack <benm@fogcreek.com>

Changes to one file · Browse files at e6957c5207c6 Showing diff from parent 51cec4d6604b Diff from another changeset...

 
 
 
1
2
3
 
18
19
20
21
 
22
23
24
 
38
39
40
41
 
42
43
44
 
1
2
3
4
5
 
20
21
22
 
23
24
25
26
 
40
41
42
 
43
44
45
46
@@ -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.