Continuing flushing document on tpds worker error

This commit is contained in:
James Allen 2017-04-11 14:02:08 +01:00
parent 477278eea5
commit 7c8f228f48

View file

@ -315,7 +315,10 @@ module.exports = ProjectEntityHandler =
if modified
# Don't need to block for marking as updated
projectUpdateHandler.markAsUpdated project_id
tpdsUpdateSender.addDoc {project_id:project_id, path:path.fileSystem, doc_id:doc_id, project_name:project.name, rev:rev}, callback
tpdsUpdateSender.addDoc {project_id:project_id, path:path.fileSystem, doc_id:doc_id, project_name:project.name, rev:rev}, (error) ->
if error?
logger.err {err: error, project_id, doc_id, version}, "error sending doc to tpds, but continuing"
callback()
else
callback()