Skip to content

Commit

Permalink
fix: increased timeout for vacuum
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Dec 1, 2023
1 parent d9f9533 commit c3ed90d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helpers/parse-payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ async function parsePayload(data, ws) {
if (payload.vacuum) {
await this.wsp.request({
action: 'vacuum',
timeout: ms('15s'),
timeout: ms('5m'),
alias_id: payload.alias_id
});
}
Expand Down
2 changes: 1 addition & 1 deletion jobs/cleanup-sqlite.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const mountDir = config.env === 'production' ? '/mnt' : tmpdir;
// eslint-disable-next-line no-await-in-loop
await wsp.request({
action: 'size',
timeout: ms('5s'),
timeout: ms('5m'), // since timeout for vacuum is 5m
alias_id: id,
vacuum: true
});
Expand Down

0 comments on commit c3ed90d

Please sign in to comment.