Skip to content

Commit 208a7f4

Browse files
committed
fix idle timeout issue; increase default standby timeout to 15 minutes
1 parent 1f0e43d commit 208a7f4

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

src/packages/frontend/client/project.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,11 @@ export class ProjectClient {
401401
// that compute server as active, which keeps it running in case it has idle timeout configured.
402402
compute_server_id?: number,
403403
): Promise<void> => {
404+
if (!is_valid_uuid_string(project_id)) {
405+
console.warn("WARNING -- touch_project takes a project_id, but got ", {
406+
project_id,
407+
});
408+
}
404409
if (compute_server_id) {
405410
// this is throttled, etc. and is independent of everything below.
406411
touchComputeServer({

src/packages/hub/hub.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { callback } from "awaiting";
1111
import blocked from "blocked";
1212
import { spawn } from "child_process";
1313
import { program as commander, Option } from "commander";
14-
1514
import basePath from "@cocalc/backend/base-path";
1615
import {
1716
pghost as DEFAULT_DB_HOST,

src/packages/sync/editor/generic/sync-doc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3585,7 +3585,7 @@ export class SyncDoc extends EventEmitter {
35853585
// keeps the project from stopping.
35863586
private touchProject = throttle(() => {
35873587
if (this.client?.is_browser()) {
3588-
this.client.touch_project?.(this.path);
3588+
this.client.touch_project?.(this.project_id);
35893589
}
35903590
}, 60000);
35913591

src/packages/util/db-schema/accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ Table({
490490
confirm_close: false,
491491
mask_files: true,
492492
page_size: 500,
493-
standby_timeout_m: 5,
493+
standby_timeout_m: 15,
494494
default_file_sort: "name",
495495
[NEW_FILENAMES]: DEFAULT_NEW_FILENAMES,
496496
show_global_info2: null,

src/packages/util/smc-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/* autogenerated by the update_version script */
2-
exports.version=1755523373;
2+
exports.version=1757119901;

0 commit comments

Comments
 (0)