stten12 ok
This commit is contained in:
parent
89565ef276
commit
7307c3769d
@ -273,7 +273,7 @@ class ArchiveSynchronizer(Component):
|
|||||||
self.log.error(f"id {record.id}: {path_in}: file not found.")
|
self.log.error(f"id {record.id}: {path_in}: file not found.")
|
||||||
return False
|
return False
|
||||||
except Forbidden as e:
|
except Forbidden as e:
|
||||||
if re.match("^Object '.*?' is subject to bucket's retention policy and cannot be deleted, overwritten or archived until .*?$", e._response.json()["error"]["message"]) is not None:
|
if re.match("^Object '.*?' is subject .*?$", e._response.json()["error"]["message"]) is not None:
|
||||||
self.log.info(f"id {record.id}: {path_in}: already stored.")
|
self.log.info(f"id {record.id}: {path_in}: already stored.")
|
||||||
else:
|
else:
|
||||||
self.log.warning(f"id: {record.id}: failed to store remotely: {str(e)}: {e._response.json()}")
|
self.log.warning(f"id: {record.id}: failed to store remotely: {str(e)}: {e._response.json()}")
|
||||||
|
|||||||
@ -174,7 +174,7 @@ class Component(QObject):
|
|||||||
self._lock.release()
|
self._lock.release()
|
||||||
return running
|
return running
|
||||||
|
|
||||||
def wait_completion(self, timeout=5):
|
def wait_completion(self, timeout=10):
|
||||||
"""
|
"""
|
||||||
waits until the requested action has been completed by the component
|
waits until the requested action has been completed by the component
|
||||||
this will return immediately if threaded=False was passed at component initialization
|
this will return immediately if threaded=False was passed at component initialization
|
||||||
|
|||||||
@ -14,7 +14,7 @@ from .hikrobot_dll import *
|
|||||||
|
|
||||||
|
|
||||||
class HikrobotSmartCamera(Component):
|
class HikrobotSmartCamera(Component):
|
||||||
def __init__(self, config=None, name=None, period=0.5, lazy=True, paused=False, threaded=True):
|
def __init__(self, config=None, name=None, period=0.2, lazy=True, paused=False, threaded=True):
|
||||||
super().__init__(config=config, name=name, period=period, lazy=lazy, paused=paused, threaded=threaded)
|
super().__init__(config=config, name=name, period=period, lazy=lazy, paused=paused, threaded=threaded)
|
||||||
self.simulate = "--sim-camera" in sys.argv
|
self.simulate = "--sim-camera" in sys.argv
|
||||||
self.num_cameras=1
|
self.num_cameras=1
|
||||||
|
|||||||
@ -15,7 +15,7 @@ class Test_Vision(Test_Test):
|
|||||||
def __init__(self, components=None, recipe=None, step=None, pieces=None, run_once=False, reset_on_start=True, enable_override=True):
|
def __init__(self, components=None, recipe=None, step=None, pieces=None, run_once=False, reset_on_start=True, enable_override=True):
|
||||||
super().__init__(components=components, recipe=recipe, step=step, pieces=pieces, run_once=run_once, reset_on_start=reset_on_start, enable_override=enable_override)
|
super().__init__(components=components, recipe=recipe, step=step, pieces=pieces, run_once=run_once, reset_on_start=reset_on_start, enable_override=enable_override)
|
||||||
if "--sim-camera" not in sys.argv:
|
if "--sim-camera" not in sys.argv:
|
||||||
self.ok_counter_limit = 2
|
self.ok_counter_limit = 3
|
||||||
else:
|
else:
|
||||||
self.ok_counter_limit = 1
|
self.ok_counter_limit = 1
|
||||||
# DETECTIONS TABLE
|
# DETECTIONS TABLE
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user