projects
/
pyutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bfc671
)
Make cron.py warn on no --timeout which can lead to stale locks.
author
Scott Gasch
<
[email protected]
>
Sat, 1 Apr 2023 18:49:59 +0000
(11:49 -0700)
committer
Scott Gasch
<
[email protected]
>
Sat, 1 Apr 2023 18:49:59 +0000
(11:49 -0700)
examples/cron/cron.py
patch
|
blob
|
history
diff --git
a/examples/cron/cron.py
b/examples/cron/cron.py
index db91af1c0c0e9f47ce0cfc6de2b0ee3c21c6b5b8..99c19af902f3a7f50db5c0a573517cc9dabc9821 100755
(executable)
--- a/
examples/cron/cron.py
+++ b/
examples/cron/cron.py
@@
-141,7
+141,7
@@
def main() -> int:
logger.debug("Timeout is %ss", timeout)
lockfile_expiration = datetime.datetime.now().timestamp() + timeout
else:
- logger.
debu
g("Timeout not specified; no lockfile expiration.")
+ logger.
warnin
g("Timeout not specified; no lockfile expiration.")
lockfile_expiration = None
lockfile_path = config.config["lockfile"]