This commit is contained in:
2020-01-27 21:47:54 +00:00
parent 3c9a6c8ea6
commit cbba819e84
8 changed files with 48 additions and 48 deletions

View File

@@ -111,9 +111,9 @@ namespace AyaNova.Biz
foreach (OpsJob j in jobs)
{
//OPSMETRIC
JobsBiz.LogJob(j.GId, "Job took too long to run - setting to failed", ct);
JobsBiz.LogJobAsync(j.GId, "Job took too long to run - setting to failed", ct);
log.LogError($"Job found job stuck in running status and set to failed: deadline={dtRunningDeadline.ToString()}, jobId={j.GId.ToString()}, jobname={j.Name}, jobtype={j.JobType.ToString()}, jobObjectType={j.ObjectType.ToString()}, jobObjectId={j.ObjectId.ToString()}");
JobsBiz.UpdateJobStatus(j.GId, JobStatus.Failed, ct);
JobsBiz.UpdateJobStatusAsync(j.GId, JobStatus.Failed, ct);
}
}