removes timeout_start_sec

I misinterpreted this option as the time to wait before starting the
task. This is apparently not what it stands for in systemd.service
This commit is contained in:
Mose Müller
2025-01-17 20:32:27 +01:00
parent f83bc0073b
commit b9a91e5ee2
3 changed files with 0 additions and 37 deletions

View File

@ -383,25 +383,6 @@ async def test_non_exceeding_start_limit_interval_sec_and_burst(
assert service_instance.my_task.status == TaskStatus.RUNNING
@pytest.mark.asyncio(scope="function")
async def test_timeout_start_sec(caplog: LogCaptureFixture) -> None:
class MyService(pydase.DataService):
@task(timeout_start_sec=0.2)
async def my_task(self) -> None:
logger.info("Starting task.")
await asyncio.sleep(1)
service_instance = MyService()
state_manager = StateManager(service_instance)
DataServiceObserver(state_manager)
service_instance.my_task.start()
await asyncio.sleep(0.1)
assert "Starting task." not in caplog.text
await asyncio.sleep(0.2)
assert "Starting task." in caplog.text
@pytest.mark.asyncio(scope="function")
async def test_exit_on_failure(
monkeypatch: pytest.MonkeyPatch, caplog: LogCaptureFixture