The goal is to reduce the number of errors on SDC
due to the processing time on certification
Initially a re-try was attempted on exception
but no exception is raised
so use a Timer to reduce the stress on certification
Issue-ID: TEST-315
Signed-off-by: morganrol <morgan.richomme@orange.com>
Change-Id: I0a67d006597c3094f55f93893126865d7ead33fb
# checkin is done if needed
# If service is replayed, no need to try to re-onboard the model
if not service.distributed:
- try:
- service.checkin()
- except (APIError, ResourceNotFound):
- # Retry as checkin may be a bit long
- # Temp workaround to avoid internal race in SDC
- time.sleep(5)
- service.checkin()
+ time.sleep(30)
+ service.checkin()
service.onboard()