introduce job info slowness
This commit is contained in:
@@ -67,6 +67,7 @@ func (ntgJob *ntgVisionJob) JobInfo() (ntgVisionJobInfo, error) {
|
||||
}
|
||||
|
||||
func (ntgJob *ntgVisionJob) jobInfo() (ntgVisionJobInfo, error) {
|
||||
time.Sleep(config.Get().Interval.JobInfo.Get())
|
||||
request, err := http.NewRequest(http.MethodGet, fmt.Sprintf(`https://ntgvision.com/api/v1/load/LoadDetails?loadId=%v`, ntgJob.ID), nil)
|
||||
if err != nil {
|
||||
return ntgVisionJobInfo{}, err
|
||||
|
||||
Reference in New Issue
Block a user