From fe7a2790aa3cb26aeeb1418c46b0cbf3ed26d8b3 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 25 May 2020 23:01:27 +0000 Subject: [PATCH] --- server/AyaNova/biz/JobsBiz.cs | 16 ++++++++-------- .../AyaNova/generator/CoreJobMetricsSnapshot.cs | 4 ++-- server/AyaNova/generator/Generate.cs | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/server/AyaNova/biz/JobsBiz.cs b/server/AyaNova/biz/JobsBiz.cs index a300b7ea..ed68162a 100644 --- a/server/AyaNova/biz/JobsBiz.cs +++ b/server/AyaNova/biz/JobsBiz.cs @@ -247,7 +247,7 @@ namespace AyaNova.Biz { if (ActivelyProcessing) { - System.Diagnostics.Debug.WriteLine("ProcessJobs called but actively processing other jobs so returning"); + //System.Diagnostics.Debug.WriteLine("ProcessJobs called but actively processing other jobs so returning"); log.LogTrace("ProcessJobs called but actively processing other jobs so returning"); return; } @@ -255,7 +255,7 @@ namespace AyaNova.Biz try { //Sweep jobs table - System.Diagnostics.Debug.WriteLine($"JobsBiz processing sweeper"); + //System.Diagnostics.Debug.WriteLine($"JobsBiz processing sweeper"); await CoreJobSweeper.DoSweepAsync();//run exclusively //BIZOBJECT DYNAMIC JOBS @@ -266,7 +266,7 @@ namespace AyaNova.Biz { try { - System.Diagnostics.Debug.WriteLine($"JobsBiz processing exclusive biz job {j.Name}"); + //System.Diagnostics.Debug.WriteLine($"JobsBiz processing exclusive biz job {j.Name}"); await ProcessJobAsync(j); //Capture metrics CoreJobMetricsSnapshot.DoJob(); @@ -280,7 +280,7 @@ namespace AyaNova.Biz } } - System.Diagnostics.Debug.WriteLine($"JobsBiz processing exclusive license check"); + //System.Diagnostics.Debug.WriteLine($"JobsBiz processing exclusive license check"); //License check long CurrentActiveCount = await UserBiz.ActiveCountAsync(); long LicensedUserCount = AyaNova.Core.License.ActiveKey.ActiveNumber; @@ -293,9 +293,9 @@ namespace AyaNova.Biz return; } //backup - System.Diagnostics.Debug.WriteLine($"JobsBiz processing backup"); + //System.Diagnostics.Debug.WriteLine($"JobsBiz processing backup"); await CoreJobBackup.DoWorkAsync();//sb exclusive - System.Diagnostics.Debug.WriteLine($"JobsBiz processing metrics snapshotter"); + //System.Diagnostics.Debug.WriteLine($"JobsBiz processing metrics snapshotter"); //Capture metrics CoreJobMetricsSnapshot.DoJob(); @@ -311,7 +311,7 @@ namespace AyaNova.Biz { try { - System.Diagnostics.Debug.WriteLine($"JobsBiz processing NON-exclusive biz job {j.Name}"); + //System.Diagnostics.Debug.WriteLine($"JobsBiz processing NON-exclusive biz job {j.Name}"); TaskUtil.Forget(Task.Run(() => ProcessJobAsync(j))); } catch (Exception ex) @@ -339,7 +339,7 @@ namespace AyaNova.Biz finally { ActivelyProcessing = false; - System.Diagnostics.Debug.WriteLine($"JobsBiz in Finally - completed run"); + //System.Diagnostics.Debug.WriteLine($"JobsBiz in Finally - completed run"); } } diff --git a/server/AyaNova/generator/CoreJobMetricsSnapshot.cs b/server/AyaNova/generator/CoreJobMetricsSnapshot.cs index 376f2bdd..60acd0ac 100644 --- a/server/AyaNova/generator/CoreJobMetricsSnapshot.cs +++ b/server/AyaNova/generator/CoreJobMetricsSnapshot.cs @@ -215,14 +215,14 @@ from generate_series(1, 525600) s(i) var Gen2 = GC.CollectionCount(2);//integer var CPU = _cpu;// double precision - System.Diagnostics.Debug.WriteLine($"MM Snapshot, cpu: {CPU}"); + //System.Diagnostics.Debug.WriteLine($"MM Snapshot, cpu: {CPU}"); using (AyContext ct = ServiceProviderProvider.DBContext) { //write to db MetricMM mm = new MetricMM(Allocated, WorkingSet, PrivateBytes, Gen0, Gen1, Gen2, CPU); ct.MetricMM.Add(mm); ct.SaveChanges(); - System.Diagnostics.Debug.WriteLine("MM SAVED"); + //System.Diagnostics.Debug.WriteLine("MM SAVED"); } diff --git a/server/AyaNova/generator/Generate.cs b/server/AyaNova/generator/Generate.cs index f53f53cf..877afcbc 100644 --- a/server/AyaNova/generator/Generate.cs +++ b/server/AyaNova/generator/Generate.cs @@ -61,13 +61,13 @@ namespace AyaNova.Generator } else { - System.Diagnostics.Debug.WriteLine($"### GENERATE calling JobsBiz.ProcessJobs"); + //System.Diagnostics.Debug.WriteLine($"### GENERATE calling JobsBiz.ProcessJobs"); //Capture metrics CoreJobMetricsSnapshot.DoJob(); await JobsBiz.ProcessJobsAsync(); //Capture metrics again, (calling repeatedly won't increase metrics but will ensure it doesn't miss frequency of capturing) CoreJobMetricsSnapshot.DoJob(); - System.Diagnostics.Debug.WriteLine($"### GENERATE BACK FROM calling JobsBiz.ProcessJobs"); + //System.Diagnostics.Debug.WriteLine($"### GENERATE BACK FROM calling JobsBiz.ProcessJobs"); } } catch (Exception ex)