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

MongoDB query timeout calculation fix #3284

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented Jun 14, 2021

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

MongoDB query timeout, which is in millisecond, is based on Celery timeout, which is in seconds.
The calculation on MongoDB was wrong. It was converted from minutes to milliseconds instead instead of
seconds to milliseconds.

Related issues

Fixes #3283
Related to kobotoolbox/kobocat#731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MongoDB query timeout calculation is wrong
2 participants