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

Fix flask api limiter issue #318

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tae898
Copy link

@tae898 tae898 commented Nov 30, 2021

This fixes the issue

@tae898
Copy link
Author

tae898 commented Nov 30, 2021

The test Flask versions are below:

Flask==2.0.2
Flask-Cors==3.0.10
Flask-Limiter==2.0.2

@tae898 tae898 mentioned this pull request Nov 30, 2021
@amirouche
Copy link
Contributor

It would be nice to add ==2.0.2 in

'limits', 'flask >= 0.12.3', 'flask-cors', 'flask-limiter',
similar thing for flask-cors

@tae898
Copy link
Author

tae898 commented Nov 30, 2021

alright!

@tae898
Copy link
Author

tae898 commented Nov 30, 2021

@amirouche done.

build.sh Outdated
@@ -30,4 +30,4 @@ check_db () {
check_disk_space
pip3 install -e '.[vectors]'
check_db
snakemake --resources 'ram=30' -j 2 $@
snakemake --resources 'ram=30' -j$(nproc) $@
Copy link
Contributor

Choose a reason for hiding this comment

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

It is better to use nproc --ignore=1 so that when the build.sh is run there is still some cpu available to do stuff.

@tae898
Copy link
Author

tae898 commented Dec 1, 2021

oh sorry I was supposed to make separate PRs. Sorry for the confusion.

@tae898
Copy link
Author

tae898 commented Dec 1, 2021

Corrected!

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.

limiter fails
2 participants