config for whether to fetch job info
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user