From 02db56575a8dcb7a2965402f63e70eee49e1b1df Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Feb 2020 19:25:59 +0000 Subject: [PATCH 1/2] Upgrade: Bump bleach from 3.1.0 to 3.1.1 Bumps [bleach](https://github.com/mozilla/bleach) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/mozilla/bleach/releases) - [Changelog](https://github.com/mozilla/bleach/blob/master/CHANGES) - [Commits](https://github.com/mozilla/bleach/compare/v3.1.0...v3.1.1) Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 7f386ad..274ba2d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,7 +6,7 @@ autopep8==1.4.4 awscli==1.16.196 babel==2.7.0 bandit==1.6.2 -bleach==3.1.0 +bleach==3.1.1 botocore==1.12.186 certifi==2019.6.16 chardet==3.0.4 From f62533b6f67ed0429f8349add7a4fae6a4f5cc5e Mon Sep 17 00:00:00 2001 From: Bedapudi Praneeth Date: Fri, 28 Aug 2020 22:44:05 +0530 Subject: [PATCH 2/2] configurable no_of_workers via NUM_WORKERS env --- verifytweet/config/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/verifytweet/config/settings.py b/verifytweet/config/settings.py index 3b6552c..242d921 100644 --- a/verifytweet/config/settings.py +++ b/verifytweet/config/settings.py @@ -30,6 +30,9 @@ def no_of_workers(): twice the cpu count. """ + if os.getenv('NUM_WORKERS').isdigit(): + return int(os.getenv('NUM_WORKERS')) + return multiprocessing.cpu_count() * 2 + 1