Skip to content
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

Improve resilience of posthog integration #2116

Open
rhysyngsun opened this issue Feb 28, 2024 · 6 comments · Fixed by mitodl/ol-django#152
Open

Improve resilience of posthog integration #2116

rhysyngsun opened this issue Feb 28, 2024 · 6 comments · Fixed by mitodl/ol-django#152
Assignees

Comments

@rhysyngsun
Copy link
Collaborator

rhysyngsun commented Feb 28, 2024

Description/Context

Posthog had an outage which caused calls to their API to timeout.

We worked around this by setting IN_TEST_SUITE=True and FEATURES_DEFAULT=True because we were fortunate enough to have all features enabled. It took some time to evaluate if this was the correct way to address the issue because IN_TEST_SUITE sounds like it could have other undesirable effects.

Plan/Design

@pdpinch
Copy link
Member

pdpinch commented Apr 1, 2024

How similar is this to the work @jkachel is doing on mitodl/mit-learn#693

@collinpreston
Copy link
Contributor

@rhysyngsun what does "pushing us well over the 30 second Heroku request timeout." mean?

@rhysyngsun
Copy link
Collaborator Author

Heroku has a 30 second request timeout: https://devcenter.heroku.com/articles/request-timeout

@collinpreston
Copy link
Contributor

This should not be automatically closed. This can be closed once the changes added in mitodl/ol-django#152 are integrated with MITx Online.

@collinpreston collinpreston reopened this May 1, 2024
@collinpreston collinpreston removed their assignment May 1, 2024
@collinpreston collinpreston self-assigned this May 14, 2024
@collinpreston
Copy link
Contributor

Blocked by mitodl/ol-django#156

@pdpinch
Copy link
Member

pdpinch commented Jun 3, 2024

Even though we made this change, we had another outage. Unlike the first outage, instead of PostHog timing out, it returned an error. So we need to add better error handling.

@pdpinch pdpinch assigned pdpinch and unassigned collinpreston Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants