diff --git a/src/pydase/task/autostart.py b/src/pydase/task/autostart.py index 075ce3c..4804033 100644 --- a/src/pydase/task/autostart.py +++ b/src/pydase/task/autostart.py @@ -6,6 +6,12 @@ from pydase.utils.helpers import is_property_attribute def autostart_service_tasks( service: pydase.data_service.data_service.DataService, ) -> None: + """Starts the service tasks defined with the `autostart` keyword argument. + + This method goes through the attributes of the passed service and its nested + `pydase.DataService` instances and calls the start method on autostart-tasks. + """ + for attr in dir(service): if not is_property_attribute(service, attr): # prevent eval of property attrs val = getattr(service, attr)