diff --git a/.aws/task_definition.json b/.aws/task_definition.json index fb57e23f8..0fb2c7d98 100644 --- a/.aws/task_definition.json +++ b/.aws/task_definition.json @@ -4,8 +4,8 @@ { "name": "quivr", "image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:bada136312ad3497664c3562a36b263d43c89c53", - "cpu": 256, - "memory": 1024, + "cpu": "512", + "memory": "1024", "portMappings": [ { "name": "quivr-5050-tcp", @@ -91,7 +91,7 @@ "requiresCompatibilities": [ "FARGATE" ], - "cpu": "256", + "cpu": "512", "memory": "1024", "runtimePlatform": { "cpuArchitecture": "X86_64", diff --git a/.aws/task_definition_preview.json b/.aws/task_definition_preview.json index aeaffe8bc..948cf8c1d 100644 --- a/.aws/task_definition_preview.json +++ b/.aws/task_definition_preview.json @@ -4,7 +4,8 @@ { "name": "quivr", "image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:c0ff0301002fe6d043270b26dabcfda797437afc", - "cpu": 0, + "cpu": "512", + "memory": "1024", "portMappings": [ { "name": "quivr-5050-tcp", @@ -91,7 +92,7 @@ "requiresCompatibilities": [ "FARGATE" ], - "cpu": "256", + "cpu": "512", "memory": "1024", "runtimePlatform": { "cpuArchitecture": "X86_64", diff --git a/.aws/task_definition_preview_worker.json b/.aws/task_definition_preview_worker.json index 67beb2835..a9ff5261c 100644 --- a/.aws/task_definition_preview_worker.json +++ b/.aws/task_definition_preview_worker.json @@ -4,7 +4,8 @@ { "name": "quivr-chat", "image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:600ff1ede02741c66853cc3e4e7f5001aaba3bc2", - "cpu": 0, + "cpu": "512", + "memory": "1024", "essential": true, "command": [ "celery", @@ -81,7 +82,7 @@ "requiresCompatibilities": [ "FARGATE" ], - "cpu": "256", + "cpu": "512", "memory": "1024", "runtimePlatform": { "cpuArchitecture": "X86_64", diff --git a/.aws/task_definition_prod_worker.json b/.aws/task_definition_prod_worker.json index 12a692399..7a3f14333 100644 --- a/.aws/task_definition_prod_worker.json +++ b/.aws/task_definition_prod_worker.json @@ -4,7 +4,8 @@ { "name": "quivr-chat", "image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:85ae06c82935028d828f60f35c7e0a47fdee1ff2", - "cpu": 0, + "cpu": "1024", + "memory": "2048", "essential": true, "command": [ "celery", @@ -81,8 +82,8 @@ "requiresCompatibilities": [ "FARGATE" ], - "cpu": "256", - "memory": "1024", + "cpu": "1024", + "memory": "2048", "runtimePlatform": { "cpuArchitecture": "X86_64", "operatingSystemFamily": "LINUX" diff --git a/backend/models/databases/supabase/api_key_handler.py b/backend/models/databases/supabase/api_key_handler.py index eb0be500e..7cf4243a3 100644 --- a/backend/models/databases/supabase/api_key_handler.py +++ b/backend/models/databases/supabase/api_key_handler.py @@ -6,7 +6,7 @@ from models.databases.repository import Repository class ApiKeyHandler(Repository): def __init__(self, supabase_client): - self.db = supabase_client + self.db = supabase_client # type: ignore def create_api_key(self, new_key_id, new_api_key, user_id): response = (