Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/backend/src/lib/seed-dummy-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1636,10 +1636,10 @@ async function seedDummySessionActivityEvents(options: SessionActivityEventSeedO
});
}, {
// Under cross-arch arm64 TCG in the emulator qcow2 build, this batch
// takes ~10s; Prisma's default is 5s. Production (KVM/native) runs it
// in well under 1s, so the looser bound only kicks in when the DB is
// genuinely slow.
timeout: 30_000,
// has been observed to take 40-50s; Prisma's default is 5s. Production
// (KVM/native) runs it in well under 1s, so the looser bound only kicks
// in when the DB is genuinely slow.
timeout: 90_000,
});

if (clickhouseClient && clickhouseRows.length > 0) {
Expand Down
5 changes: 3 additions & 2 deletions docker/dependencies/freestyle-mock/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,9 @@ const server = createServer(async (req, res) => {
}
});

server.listen(8080, () => {
console.log(`freestyle-mock listening on :8080 (worker pool size ${POOL_SIZE})`);
const PORT = process.env.PORT || 8080;
server.listen(PORT, () => {
console.log(`freestyle-mock listening on :${PORT} (worker pool size ${POOL_SIZE})`);
});
EOF

Expand Down
1 change: 0 additions & 1 deletion docker/local-emulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ RUN node -e " \
fs.writeFileSync('package.json', pkgMatch[1]); \
const srvMatch = df.match(/cat <<'EOF' > server\\.mjs\\n([\\s\\S]*?)\\nEOF/); \
let server = srvMatch[1]; \
server = server.replace('server.listen(8080)', 'server.listen(process.env.PORT || 8080)'); \
server = server.replace( \
'from \"fs/promises\"', \
'from \"fs/promises\"; import { symlinkSync } from \"fs\"' \
Expand Down
2 changes: 1 addition & 1 deletion docker/local-emulator/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ command=/usr/lib/postgresql/16/bin/postgres
-c max_connections=500
-c shared_preload_libraries=pg_stat_statements
-c pg_stat_statements.track=all
-c statement_timeout=120s
-c statement_timeout=0
user=postgres
autostart=true
autorestart=true
Expand Down
Loading