notify docupdate if the flush is from a shutdown

This commit is contained in:
Brian Gough 2019-08-13 17:36:53 +01:00
parent 0708f717fd
commit 20d442120f

View file

@ -40,7 +40,8 @@ module.exports = DocumentUpdaterManager =
logger.log project_id:project_id, "deleting project from document updater" logger.log project_id:project_id, "deleting project from document updater"
timer = new metrics.Timer("delete.mongo.project") timer = new metrics.Timer("delete.mongo.project")
# flush the project in the background when all users have left # flush the project in the background when all users have left
url = "#{settings.apis.documentupdater.url}/project/#{project_id}?background=true" url = "#{settings.apis.documentupdater.url}/project/#{project_id}?background=true" +
(if settings.shutDownInProgress then "&shutdown=true" else "")
request.del url, (err, res, body)-> request.del url, (err, res, body)->
timer.done() timer.done()
if err? if err?