chore: cosmetic worker condition refactoring

This commit is contained in:
Axel-CH
2025-03-25 11:39:31 -04:00
parent 285867f8c6
commit e77ce8d481

View File

@@ -112,7 +112,7 @@ class Worker:
self._throttle(func=self._process_stopped, throttle_secs=self._throttle_secs)
elif state == State.RUNNING or state == State.PAUSED:
elif state in (State.RUNNING, State.PAUSED):
state_str = "RUNNING" if state == State.RUNNING else "PAUSED"
# Ping systemd watchdog before throttling
self._notify(f"WATCHDOG=1\nSTATUS=State: {state_str}.")