chore: cosmetic worker condition refactoring
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ class Worker:
|
|||||||
|
|
||||||
self._throttle(func=self._process_stopped, throttle_secs=self._throttle_secs)
|
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"
|
state_str = "RUNNING" if state == State.RUNNING else "PAUSED"
|
||||||
# Ping systemd watchdog before throttling
|
# Ping systemd watchdog before throttling
|
||||||
self._notify(f"WATCHDOG=1\nSTATUS=State: {state_str}.")
|
self._notify(f"WATCHDOG=1\nSTATUS=State: {state_str}.")
|
||||||
|
|||||||
Reference in New Issue
Block a user