Skip to content
Snippets Groups Projects
Commit 152ae0c7 authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

Merge branch 'fix/manager-past-configuration-timeout' into 'master'

Wrap call to receive past configuration for restored keys in wait_for to catch timeout

See merge request !39
parents 53f6ed57 51546dd5
No related branches found
No related tags found
1 merge request!39Wrap call to receive past configuration for restored keys in wait_for to catch timeout
......@@ -1135,8 +1135,11 @@ class CalibrationManager(DeviceClientBase, Device):
if key_patterns:
try:
# Try to obtain most recent configuration.
old_config = await getConfigurationFromPast(
device_id, datetime.now().isoformat())
old_config = await wait_for(getConfigurationFromPast(
device_id, datetime.now().isoformat()), 15.0)
except AsyncTimeoutError:
self.logger.warn(f'Timeout receiving previous configuration '
f'for {device_id}')
except KaraboError as e:
self.logger.warn(f'Failed receiving previous configuration '
f'for {device_id}: {e}')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment