-
-
Notifications
You must be signed in to change notification settings - Fork 717
Closed
Labels
Description
I would like to have an additional parameter to the custom/script
module that allows me to set an interval for the exec-if
command that is different from the standard interval (a backoff timer for when the command fails).
One of my use cases wowuld be my script for showing information about the train I'm in: While I want the information to be refreshed every few seconds, most of the time I'm not on a train and so the check should not run too often.
My implementation idea would be:
- add a
exec-if-backoff
parameter (or maybeinterval-exec-if
,interval-backoff
?) - if the
exec-if
command fails andexec-if-backoff
is present, wait for the configured backoff time (instead ofinterval
) before runing it again - when
exec-if
succeeds, executeexec
then wait forinterval