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

Mongo query timeout #3210

Merged
merged 4 commits into from
May 19, 2021
Merged

Mongo query timeout #3210

merged 4 commits into from
May 19, 2021

Conversation

JacquelineMorrissette
Copy link
Contributor

Checklist

  1. If you've added code that should be tested, add tests
  2. If you've changed APIs, update (or create!) the documentation
  3. Ensure the tests pass
  4. Make sure that your code lints and that you've followed our coding style
  5. Write a description of your work suitable for publishing on our forum
  6. Mention any related issues in this repository (as #ISSUE) and in other repositories (as kobotoolbox/other#ISSUE)

Description

Added a timeout to Mongo Queries to ensure that they don't run for several hours at a time

Related issues

fixes #3158
related kobotoolbox/kobocat#710

Copy link
Contributor

@noliveleger noliveleger left a comment

Choose a reason for hiding this comment

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

Please apply the same requests to this PR as we discussed in KoBoCAT (kobotoolbox/kobocat#710)

kpi/utils/mongo_helper.py Outdated Show resolved Hide resolved
@noliveleger noliveleger merged commit d255df4 into master May 19, 2021
@noliveleger noliveleger deleted the 3158-mongo-query-timeout-2 branch May 19, 2021 15:22
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.

Add MongoDB query timeout
3 participants