From 268128410ceac3c62b5f618da3bac0662904c928 Mon Sep 17 00:00:00 2001 From: mattf Date: Sun, 28 Oct 2018 18:53:01 +0000 Subject: [PATCH] Added vicidial_list stuck QUEUE reset at TEoD git-svn-id: svn://192.168.202.10@3052 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index 9ca586b3..9ca4eaa5 100644 --- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl +++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl @@ -133,9 +133,10 @@ # 180908-1428 - Added daily rolling of vicidial_ccc_log records # 180916-1003 - Added vicidial_lists.resets_today resetting at TEOD, timed reset resets_today verification before reset # 180930-1007 - Added more allowed codecs to conf file generation +# 181028-1451 - Added vicidial_list stuck QUEUE reset at TEoD # -$build = '180930-1007'; +$build = '181028-1451'; $DB=0; # Debug flag $teodDB=0; # flag to log Timeclock End of Day processes to log file @@ -1185,6 +1186,12 @@ if ($timeclock_end_of_day_NOW > 0) if ($DB) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";} $sthA->finish(); + $stmtA = "UPDATE vicidial_list SET user='' where user LIKE \"QUEUE%\";"; + if($DBX){print STDERR "\n|$stmtA|\n";} + $affected_rows = $dbhA->do($stmtA); + if($DB){print STDERR "\n|$affected_rows vicidial_list stuck QUEUE reset|\n";} + if ($teodDB) {$event_string = "vicidial_list stuck QUEUE reset: $affected_rows"; &teod_logger;} + $stmtA = "update vicidial_campaign_agents SET calls_today=0,hopper_calls_today=0,hopper_calls_hour=0;"; if($DBX){print STDERR "\n|$stmtA|\n";} $affected_rows = $dbhA->do($stmtA);