mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add comment about background flush limit
This commit is contained in:
parent
ae3ebf2db6
commit
0c14b7d2f8
1 changed files with 5 additions and 1 deletions
|
@ -70,6 +70,10 @@ module.exports = DeleteQueueManager =
|
|||
if Settings.shuttingDown
|
||||
logger.warn "discontinuing background flush due to shutdown"
|
||||
return
|
||||
DeleteQueueManager.flushAndDeleteOldProjects {timeout:1000,min_delete_age:3*60*1000,limit:1000}, (err, flushed) ->
|
||||
DeleteQueueManager.flushAndDeleteOldProjects {
|
||||
timeout:1000,
|
||||
min_delete_age:3*60*1000,
|
||||
limit:1000 # high value, to ensure we always flush enough projects
|
||||
}, (err, flushed) ->
|
||||
setTimeout doFlush, (if flushed > 10 then SHORT_DELAY else LONG_DELAY)
|
||||
doFlush()
|
||||
|
|
Loading…
Reference in a new issue