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

Add sleep operations to allow the server to recover from the commands. Especially useful in recovering from the exception thrown by the QueueService and automatically restarting the script. FC2295785

Changeset d81b4e4fa716

Parent d30937bef3d5

by Profile picture of Developer Wiki Admin AccountDeveloper Wiki Admin Account

Changes to one file · Browse files at d81b4e4fa716 Showing diff from parent d30937bef3d5 Diff from another changeset...

 
38
39
40
 
 
41
42
43
 
53
54
55
 
 
56
57
58
 
76
77
78
79
 
 
 
38
39
40
41
42
43
44
45
 
55
56
57
58
59
60
61
62
 
80
81
82
 
 
83
@@ -38,6 +38,8 @@
  $restartKss = $false   write "---------------- Restart Kiln Storage Service ----------------"   sc.exe stop "KilnStorageService" + # give the services time to clean up + sleep 5   sc.exe start "KilnStorageService"   }   $getQueueLength = $switchGetQueueLength @@ -53,6 +55,8 @@
  # Queue Service.   $getQueueLength = $false   $queueLength = get-queueLength + # give the queue some time to process + sleep 3   write "---------------- Get Kiln Queue Length ----------------"   write "KILN QUEUE LENGTH: $queueLength"   } @@ -76,4 +80,4 @@
  }   }   popd -} \ No newline at end of file
+}