Skip to content

Commit

Permalink
#59 - Queue and TestRun Managers are now reporting heartbeat.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsider committed Oct 9, 2017
1 parent 40a985b commit 0331c73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Queue_Manager/queueManager.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ do {
$ManagerWait = $ManagerData[0].Wait
write-log -Message "Manager Status is : ${ManagerStatus}" -Logfile $logfile
write-log -Message "Manager Wait is : ${ManagerWait}" -Logfile $logfile
Write-Log -Message "Updating HeartBeat" -Logfile $logfile
$CurrentHeartBeat = get-date
$query = "update queue_manager set heartbeat='$CurrentHeartBeat' where ID like '1'"
Invoke-MySQLQuery -Query $query -ConnectionString $MyConnectionString

####################################
# Set Status to Starting up
Expand Down
4 changes: 4 additions & 0 deletions TestRun_Manager/TestRun_Manager.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ do {
write-log -Message "TestRun Manager Status is : ${TestRunManagerStatus}" -Logfile $logfile
write-log -Message "TestRun Manager Wait is : ${TestRunManagerWait}" -Logfile $logfile
write-log -Message "TestRun Manager Max_Concurrent is : ${TestRunMGR_Max_Concurrent}" -Logfile $logfile
Write-Log -Message "Updating HeartBeat" -Logfile $logfile
$CurrentHeartBeat = get-date
$query = "update testrun_manager set heartbeat='$CurrentHeartBeat' where ID like '$TestRunManagerID'"
Invoke-MySQLQuery -Query $query -ConnectionString $MyConnectionString

####################################
# Set Status to Starting up
Expand Down

0 comments on commit 0331c73

Please sign in to comment.