updated sh files
This commit is contained in:
@@ -8,7 +8,7 @@ sqlalchemy[asyncio]
|
|||||||
asyncpg
|
asyncpg
|
||||||
alembic
|
alembic
|
||||||
python-dotenv
|
python-dotenv
|
||||||
aiohttp
|
aiohttp==3.11.18
|
||||||
aiohttp[speedups]
|
aiohttp[speedups]
|
||||||
celery[redis]
|
celery[redis]
|
||||||
pyjwt
|
pyjwt
|
||||||
|
|||||||
0
start_scheduler.sh
Normal file → Executable file
0
start_scheduler.sh
Normal file → Executable file
4
start_scheduler_background.sh
Executable file
4
start_scheduler_background.sh
Executable 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
|
||||||
@@ -54,7 +54,7 @@ fi
|
|||||||
|
|
||||||
# Start the Taskiq worker
|
# Start the Taskiq worker
|
||||||
log_info "Starting 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 when the Taskiq worker stops
|
||||||
log_info "Taskiq worker stopped"
|
log_info "Taskiq worker stopped"
|
||||||
4
start_taskiq_background.sh
Executable file
4
start_taskiq_background.sh
Executable 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
|
||||||
Reference in New Issue
Block a user