edgexfoundry / device-onvif-camera

Owner: Device WG
Apache License 2.0
29 stars 37 forks source link

Delay in obtaining DeviceStatus for pre-defined and manually added devices #121

Closed ajcasagrande closed 1 year ago

ajcasagrande commented 2 years ago

🐞 Bug Report

Affected Services [REQUIRED]

device-onvif-camera

Is this a regression?

No

Description and Minimal Reproduction [REQUIRED]

When a device is added either via pre-defined devices in camera.toml, or via the core-metadata REST API, the device will lack a DeviceStatus until the next time the checkStatuses job is run.

In the case of pre-defined devices (using default configuration) this can be up to 45 seconds after service startup. In the case of REST API, it can be up to 30 seconds.

🌍 Your Environment

Deployment Environment: Docker + EdgeX-Compose

EdgeX Version [REQUIRED]: 2.2

Anything else relevant?

vyshali-chitikeshi commented 1 year ago

Verified that retrieving device status not taking 30 seconds or 45 seconds longer with images on 10/28/22. Tested with predefined devices in configuraiton.toml file and adding devices manually with curl command. In both cases, noticed that device status called within 1 or 2 secs after services are up or after adding device manually with curl command.