Feature/Add remove on age and count to bullmq (#4249)

add remove on age and count to bullmq
This commit is contained in:
Henry Heng
2025-04-03 16:07:10 +08:00
committed by GitHub
parent dd56d03b78
commit 8e63b999b8
6 changed files with 39 additions and 8 deletions
+2
View File
@@ -86,6 +86,8 @@ BLOB_STORAGE_PATH=/root/.flowise/storage
# QUEUE_NAME=flowise-queue
# QUEUE_REDIS_EVENT_STREAM_MAX_LEN=100000
# WORKER_CONCURRENCY=100000
# REMOVE_ON_AGE=86400
# REMOVE_ON_COUNT=10000
# REDIS_URL=
# REDIS_HOST=localhost
# REDIS_PORT=6379
+7 -5
View File
@@ -38,6 +38,8 @@ services:
- WORKER_CONCURRENCY=${WORKER_CONCURRENCY}
- QUEUE_NAME=${QUEUE_NAME}
- QUEUE_REDIS_EVENT_STREAM_MAX_LEN=${QUEUE_REDIS_EVENT_STREAM_MAX_LEN}
- REMOVE_ON_AGE=${REMOVE_ON_AGE}
- REMOVE_ON_COUNT=${REMOVE_ON_COUNT}
- REDIS_URL=${REDIS_URL}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
@@ -50,11 +52,11 @@ services:
ports:
- '${PORT}:${PORT}'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORT}/api/v1/ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
test: ['CMD', 'curl', '-f', 'http://localhost:${PORT}/api/v1/ping']
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
- ~/.flowise:/root/.flowise
entrypoint: /bin/sh -c "sleep 3; flowise start"
+2
View File
@@ -38,6 +38,8 @@ services:
- WORKER_CONCURRENCY=${WORKER_CONCURRENCY}
- QUEUE_NAME=${QUEUE_NAME}
- QUEUE_REDIS_EVENT_STREAM_MAX_LEN=${QUEUE_REDIS_EVENT_STREAM_MAX_LEN}
- REMOVE_ON_AGE=${REMOVE_ON_AGE}
- REMOVE_ON_COUNT=${REMOVE_ON_COUNT}
- REDIS_URL=${REDIS_URL}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}