Skip to content
Snippets Groups Projects
Commit a841230f authored by richard.petersen's avatar richard.petersen :sailboat: Committed by richard.petersen
Browse files

Improve bull queue options

parent 82381cb1
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,9 @@ export default function createQueues () {
updateVersionQueue.add({}, {
jobId: 'update-version-job',
repeat: { every: Number(process.env.CACHE_TTL) },
removeOnComplete: true
removeOnComplete: 10,
removeOnFail: 10,
timeout: 10000
})
// not a queue but though, used by redis
......
......@@ -35,7 +35,7 @@ export async function getLatestVersion () {
if (redis.isEnabled()) {
const version = await redis.client.get(getRedisKey({ name: 'latestVersion' }))
if (version) {
logger.debug(`[Version] Got initial version from redis: '${version}'`)
logger.info(`[Version] Got initial version from redis: '${version}'`)
return (latestVersion = version)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment