I cleaned up both maintenance functions to make them work and be more predictable a while back in https://github.com/librenms/librenms/pull/14153 which is now merged.
You might want to add something about maintenance to the post subject/topic for clarity.