mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-13 00:11:28 +08:00
fix: resolve issue of missing live consumption data when algorithm service is down
This commit is contained in:
@@ -398,7 +398,7 @@ func (dExt *DriverExt) GetScreenResult(options ...ActionOption) (screenResult *S
|
|||||||
imageResult, err := dExt.ImageService.GetImage(bufSource, options...)
|
imageResult, err := dExt.ImageService.GetImage(bufSource, options...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msg("GetImage from ImageService failed")
|
log.Error().Err(err).Msg("GetImage from ImageService failed")
|
||||||
return nil, err
|
return screenResult, err
|
||||||
}
|
}
|
||||||
if imageResult != nil {
|
if imageResult != nil {
|
||||||
screenResult.imageResult = imageResult
|
screenResult.imageResult = imageResult
|
||||||
|
|||||||
@@ -249,8 +249,6 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
|
|||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msg("get screen result failed")
|
log.Error().Err(err).Msg("get screen result failed")
|
||||||
time.Sleep(3 * time.Second)
|
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// add live type
|
// add live type
|
||||||
|
|||||||
Reference in New Issue
Block a user