-
Notifications
You must be signed in to change notification settings - Fork 4
A basic janitor service to handle recurring tasks - part 1 #322
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
jonasbardino
merged 17 commits into
next
from
add/basic-vgrid-janitor-service-for-recurring-tasks-like-clean-up_next
Sep 26, 2025
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ccf496b
Skeleton grid_janitor service as outlined in milestone 8. Ported to `…
jonasbardino 3adb087
Add missing grid_janitor daemon and fix copyritgh header.
jonasbardino 55a82aa
Really commit the first functional version as stated in previous comm…
jonasbardino 6be8809
Integrated automatic password reset acceptance and rejection dependin…
jonasbardino 89110a8
Refactor management of trivial requests into its own function. Add re…
jonasbardino c349205
Add more invalid account request handling to automatically also reject:
jonasbardino 6814718
Refactor grid_janitor to use new mig/lib/ for all helper functions an…
jonasbardino 727024c
Move grid_janitor to the new ./sbin location for modern clean services.
jonasbardino 2b35b47
Style and format only changes. Applied
jonasbardino eaf98d2
Minor polish in preparation for review and merge of the basic janitor
jonasbardino 3de9b3a
Polish docstring for `early_validation_checks` and fix a inadvertent …
jonasbardino ca003c5
Add a simple interruptible sleep action for daemons to support the us…
jonasbardino 879a633
Implement run handler and interruptible sleep in grid_janitor with th…
jonasbardino 6fa47a5
And remove the TODO comment about the latest commit.
jonasbardino 16a4820
Another minimal comment change.
jonasbardino 7fa8c3b
Actually check assertion on funtion *call* rather than on the always …
jonasbardino 34b75d8
Address a couple of important PR322 review comments. Thanks @rasmunk
jonasbardino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PID_FILE doesn't appear to be used here?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that looks true.
It's a simple copy/paste of what we do for all the other migrid service daemons, and AFAICT the
PID_FILEis only directly used in the correspondingdeb(Debian/Ubuntu) template. It should perhaps be used onrh(RHEL/Rocky), too, but that would be something to handle and test thoroughly in a separate PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add a TODO about it in the template.