Skip to content

Just set the status of the cronjob if the job was run or was disabled. #796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

winnieXY
Copy link
Contributor

This small patch will just set the "healthy" flag if the cron was executed or was disabled/enabled, so that a failed flag persists.

This a attempt to close #794

@HB9HIL HB9HIL self-assigned this Aug 23, 2024
@winnieXY winnieXY marked this pull request as draft August 23, 2024 07:07
@winnieXY
Copy link
Contributor Author

Tested it and verified that with #795 applied (and wrong local_url) the failed state will be persistent, so the state gives indeed a good indicator if the cronjob is healthy or not.

Caveat - if you enable a cronjob it will stick to "pending" till the first run. Currently it will state "healthy" as soon as a time for the next execution is calculated. However I think that this is acceptable, as the cronjob is indeed pending and we do not know (yet) if it is healthy or not.

@winnieXY winnieXY marked this pull request as ready for review August 26, 2024 06:47
Copy link
Contributor

@HB9HIL HB9HIL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice fix :) thx!

@HB9HIL HB9HIL merged commit 366e261 into wavelog:dev Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CronManager overwrites failed status after one Minute again with "healthy"
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy