mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
fix: fixing autostart of tasks
This commit is contained in:
parent
ccd82da946
commit
cb7dcb625e
@ -140,7 +140,7 @@ class TaskManager(AbstractTaskManager):
|
|||||||
def start_autostart_tasks(self) -> None:
|
def start_autostart_tasks(self) -> None:
|
||||||
if self.service._autostart_tasks is not None:
|
if self.service._autostart_tasks is not None:
|
||||||
for service_name, args in self.service._autostart_tasks.items():
|
for service_name, args in self.service._autostart_tasks.items():
|
||||||
start_method = getattr(self, f"start_{service_name}", None)
|
start_method = getattr(self.service, f"start_{service_name}", None)
|
||||||
if start_method is not None and callable(start_method):
|
if start_method is not None and callable(start_method):
|
||||||
start_method(*args)
|
start_method(*args)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user