diff --git a/CODEOWNERS b/CODEOWNERS index 3ce897b9..ebf24376 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,4 +1,4 @@ -* @DGaffney @skyemeedan @computermacgyver +* @skyemeedan @computermacgyver /.github/ @dmou /production/ @dmou Dockerfile @dmou diff --git a/app/test/test_openai.py b/app/test/test_openai.py index 110e2ebe..b546b1fd 100644 --- a/app/test/test_openai.py +++ b/app/test/test_openai.py @@ -73,7 +73,9 @@ def test_retrieve_openai_embeddings_calls_openai_api(self): result = retrieve_openai_embeddings(self.test_content_sample['content'], self.test_content_sample['models'][0]) self.assertIsNotNone(openai.api_key) self.assertNotEquals(openai.api_key,"") - self.assertEqual(result, self.test_content_embedding_true_value) + # because the values of the vectors returned by the service may change + # we are only checking that they are the expected length + self.assertEqual(len(result), len(self.test_content_embedding_true_value)) if __name__ == "__main__": unittest.main() diff --git a/production/bin/start.sh b/production/bin/start.sh index bec29cc4..0d78d8b6 100755 --- a/production/bin/start.sh +++ b/production/bin/start.sh @@ -66,4 +66,4 @@ set +o allexport python manage.py init python manage.py init_perl_functions python manage.py db upgrade -gunicorn --preload -w 16 --threads 16 -b 0.0.0.0:${ALEGRE_PORT} --access-logfile - --error-logfile - wsgi:app +gunicorn --preload -w 64 --threads 16 -b 0.0.0.0:${ALEGRE_PORT} --max-requests 1000 --max-requests-jitter 100 --access-logfile - --error-logfile - wsgi:app