diff options
author | mortee <mortee@kavemalna.hu> | 2024-02-16 12:42:33 +0100 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2024-02-21 09:16:30 +0100 |
commit | 540b7db34e5905fd12114f1dad99d73e58531bad (patch) | |
tree | 009ddb9addd67e0490409b0a890209b03a5184d6 /docs | |
parent | 9ee51e0c5b4e761a250fdd0413b45979dc33bb17 (diff) |
added --check-elapsed command line option, to prevent existing scripts from breaking
Diffstat (limited to 'docs')
-rw-r--r-- | docs/troubleshooting.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 5dad1604f..39677b564 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -73,6 +73,18 @@ Checking update Status Last Execution was 2023-03-20 12:20:03 UTC ``` +The same check that is done in the News admin settings can be done using occ too. +Adding the --check-elapsed option displays the time elapsed since the last execution, +and if it's considered too long ago, a message will be displayed, and the command returns +with exit code 2. This can be used in scripts to send an alert for example. +```bash +sudo -u www-data php ./occ news:updater:job --check-elapsed +Checking update Status +Last Execution was 2023-03-20 12:20:03 UTC +8 hours, 21 minutes, 20 seconds ago +Something is wrong with the news cronjob, execution delay exceeded the configured interval. +``` + If you think the job is stuck you can reset it, this may lead to issues if the job is currently running! ```bash |