config for whether to fetch job info

This commit is contained in:
Bel LaPointe
2022-01-14 01:00:33 -05:00
parent 6704b23bf1
commit ebe777e989
3 changed files with 5 additions and 0 deletions

View File

@@ -50,6 +50,9 @@ type ntgVisionJobInfo struct {
}
func (ntgJob *ntgVisionJob) JobInfo() (ntgVisionJobInfo, error) {
if !config.Get().Brokers.NTG.JobInfo {
return ntgJob.jobinfo, nil
}
if fmt.Sprint(ntgJob.jobinfo) != fmt.Sprint(ntgVisionJobInfo{}) {
return ntgJob.jobinfo, nil
}