diff --git a/server/commands/documentCollaborativeUpdater.ts b/server/commands/documentCollaborativeUpdater.ts index f2cdc2b2a1..fd58ab5d90 100644 --- a/server/commands/documentCollaborativeUpdater.ts +++ b/server/commands/documentCollaborativeUpdater.ts @@ -30,6 +30,10 @@ export default async function documentCollaborativeUpdater({ clientVersion, }: Props) { return sequelize.transaction(async (transaction) => { + await sequelize.query(`SET LOCAL lock_timeout = '15s';`, { + transaction, + }); + const document = await Document.unscoped() .scope("withoutState") .findOne({