Skip to content

INTPYTHON-630 Fixes handling of ttlMonitorSleepSecs #144

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

caseyclements
Copy link
Collaborator

ttlMonitorSleepSecs was first reduced programatically via client.admin.command(setParameter,ttlMonitorSleepSecs). This reduced the time required to test the TTL feature from 60 seconds to 2. This is because 60s is the frequency that the background process is kicked off at. However, this only worked on local Atlas. For Cloud Atlas, this feature requires that one setParameter manually vi the Atlas Administration UI. This PR is small. It just wraps client.admin.command(setParameter,ttlMonitorSleepSecs) in a try block. Crucially though, it comes at the same time as @blink1073 updated the parameter via API for our remote tests' cluster.

See docs here.

@caseyclements caseyclements requested a review from blink1073 May 28, 2025 20:47
Copy link
Collaborator

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

2 participants