diff --git a/app/web/config.py b/app/web/config.py index 5bbc8a5..a6c668c 100644 --- a/app/web/config.py +++ b/app/web/config.py @@ -1,4 +1,4 @@ -VERSION = "0.9.3" +VERSION = "0.9.4" API_DESCRIPTION = """ #### API for the Auto-Archiver project, a tool to archive web pages and Google Sheets. diff --git a/app/web/security.py b/app/web/security.py index 56d17ad..cae7c05 100644 --- a/app/web/security.py +++ b/app/web/security.py @@ -78,7 +78,7 @@ def authenticate_user(access_token): return False, f"email '{email}' not allowed" return True, email except exceptions.FirebaseError as e: - logger.warning(f"Error verifying ID token: {str(e)}") + logger.warning(f"Error verifying ID token: {str(e)[:80]}...") # https://cloud.google.com/docs/authentication/token-types#access if type(access_token) != str or len(access_token) < 10: return False, "invalid access_token" diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 29088c0..5f7c607 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -16,7 +16,7 @@ services: worker: # command: watchmedo auto-restart --patterns="*.py" --recursive --ignore-directories -- celery -- --app=app.worker.main.celery worker -Q high_priority,low_priority --concurrency=${CONCURRENCY} --max-tasks-per-child=100 - command: celery --app=app.worker.main.celery worker -Q high_priority,low_priority --concurrency=${CONCURRENCY} --max-tasks-per-child=100 + command: celery --app=app.worker.main.celery worker -Q high_priority,low_priority --concurrency=${CONCURRENCY} --max-tasks-per-child=100 -O fair restart: "no" env_file: .env.dev volumes: diff --git a/docker-compose.yml b/docker-compose.yml index 31969bc..d1b2a4c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,7 +34,7 @@ services: dockerfile: worker.Dockerfile restart: always env_file: .env.prod - command: celery --app=app.worker.main.celery worker -Q high_priority,low_priority --concurrency=${CONCURRENCY} --max-tasks-per-child=100 + command: celery --app=app.worker.main.celery worker -Q high_priority,low_priority --concurrency=${CONCURRENCY} --max-tasks-per-child=100 -O fair volumes: - ./logs:/aa-api/logs - ./database:/aa-api/database