updated sh files

This commit is contained in:
2025-08-17 12:08:46 +03:00
parent 3a2e48dca9
commit 4d0a85a43d
5 changed files with 12 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ sqlalchemy[asyncio]
asyncpg
alembic
python-dotenv
aiohttp
aiohttp==3.11.18
aiohttp[speedups]
celery[redis]
pyjwt

0
start_scheduler.sh Normal file → Executable file
View File

4
start_scheduler_background.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd)"
source $SCRIPT_PATH/venv/bin/activate
bash $SCRIPT_PATH/start_scheduler.sh

View File

@@ -54,7 +54,7 @@ fi
# Start the Taskiq worker
log_info "Starting Taskiq worker..."
taskiq worker background:taskiq_broker background.tasks --max-async-task 5000 --max-threadpool-threads 8 --max-prefetch 10000 --workers 1
taskiq worker background:taskiq_broker background.tasks --max-async-task 1000 --max-threadpool-threads 8 --max-prefetch 10000 --workers 1
# Log when the Taskiq worker stops
log_info "Taskiq worker stopped"

4
start_taskiq_background.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd)"
source $SCRIPT_PATH/venv/bin/activate
bash $SCRIPT_PATH/start_taskiq.sh