Skip to content

fix: use 15 minute polling interval while SSE is connected - #119

Merged
JamieSinn merged 1 commit into
DevCycleHQ:mainfrom
sanamio:fix/sse-polling-interval
Nov 5, 2026
Merged

JamieSinn merged 1 commit into
DevCycleHQ:mainfrom
sanamio:fix/sse-polling-interval

Conversation

@sanamio

@sanamio sanamio commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

_sse_polling_interval is 1000 * 60 * 15 * 60 ms (~10 days). It should be 15 minutes, matching the Java SDK. With the current value, a missed or stale SSE update is never corrected by polling.

🤖 Generated with Claude Code

@sanamio
sanamio requested a review from a team as a code owner October 15, 2026 09:42
@sanamio

sanamio commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

Hi @jonathannorris , could you approve the CI run and review this? It's a one-line fix: the SSE polling interval is
~10 days instead of 15 minutes (Java SDK uses 15 min). Thanks!

Comment on lines +113 to +121
@patch("devcycle_python_sdk.api.config_client.ConfigAPIClient.get_config")
def test_sse_polling_interval_is_15_minutes(self, mock_get_config):
mock_get_config.return_value = (self.test_config_json, self.test_etag, None)
config_manager = EnvironmentConfigManager(
self.sdk_key, self.test_options, self.test_local_bucketing
)
self.assertEqual(config_manager._sse_polling_interval, 15 * 60 * 1000)
config_manager.close()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this test isn't needed

The SSE polling interval was 1000 * 60 * 15 * 60 ms (about 10 days)
instead of the intended 15 minutes, so a missed or stale SSE update
was not corrected by polling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JamieSinn
JamieSinn force-pushed the fix/sse-polling-interval branch from 96d2188 to d3487f1 Compare November 5, 2026 14:01
@JamieSinn
JamieSinn merged commit bcfa03e into DevCycleHQ:main Nov 5, 2026
3 checks passed
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