|
@@ -99,13 +99,13 @@ services:
|
|
|
cpus: '1'
|
|
cpus: '1'
|
|
|
memory: 1536M
|
|
memory: 1536M
|
|
|
|
|
|
|
|
- # PDF Worker 3
|
|
|
|
|
- pdf-worker-3:
|
|
|
|
|
|
|
+ # Logic Worker 1(非 PDF 重逻辑:答题分析、难度校准等)
|
|
|
|
|
+ logic-worker-1:
|
|
|
build:
|
|
build:
|
|
|
context: .
|
|
context: .
|
|
|
target: pdfworker
|
|
target: pdfworker
|
|
|
- container_name: pdf_worker_3
|
|
|
|
|
- command: php artisan queue:work --queue=pdf --sleep=3 --tries=3 --max-time=300 --max-jobs=10
|
|
|
|
|
|
|
+ container_name: logic_worker_1
|
|
|
|
|
+ command: php artisan queue:work --queue=logic --sleep=1 --tries=2 --max-time=600 --max-jobs=50
|
|
|
env_file:
|
|
env_file:
|
|
|
- .env
|
|
- .env
|
|
|
volumes:
|
|
volumes:
|
|
@@ -130,13 +130,13 @@ services:
|
|
|
cpus: '1'
|
|
cpus: '1'
|
|
|
memory: 1536M
|
|
memory: 1536M
|
|
|
|
|
|
|
|
- # PDF Worker 4
|
|
|
|
|
- pdf-worker-4:
|
|
|
|
|
|
|
+ # Logic Worker 2(非 PDF 重逻辑:答题分析、难度校准等)
|
|
|
|
|
+ logic-worker-2:
|
|
|
build:
|
|
build:
|
|
|
context: .
|
|
context: .
|
|
|
target: pdfworker
|
|
target: pdfworker
|
|
|
- container_name: pdf_worker_4
|
|
|
|
|
- command: php artisan queue:work --queue=pdf --sleep=3 --tries=3 --max-time=300 --max-jobs=10
|
|
|
|
|
|
|
+ container_name: logic_worker_2
|
|
|
|
|
+ command: php artisan queue:work --queue=logic --sleep=1 --tries=2 --max-time=600 --max-jobs=50
|
|
|
env_file:
|
|
env_file:
|
|
|
- .env
|
|
- .env
|
|
|
volumes:
|
|
volumes:
|