Skip to content

Commit

Permalink
upgrade Mongo!!
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Oct 19, 2024
1 parent a3616fc commit 414599d
Show file tree
Hide file tree
Showing 5 changed files with 1,049 additions and 1,486 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# docker build -t smartnet-player .
# do a `git pull` in smartnet-player to update

FROM node:19-bullseye
FROM node:22-bookworm

# RUN echo deb https://www.deb-multimedia.org bullseye main non-free \
# >>/etc/apt/sources.list && apt-get update -oAcquire::AllowInsecureRepositories=true &&\
# apt-get install -y --force-yes deb-multimedia-keyring && \

RUN apt-get update && \
apt-get install -y ffmpeg cron python build-essential g++
apt-get install -y ffmpeg cron python3 build-essential g++

ENV HOME=/home/app

Expand Down
2 changes: 1 addition & 1 deletion backend/controllers/uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ exports.upload = async function (req, res, next) {
});
} finally {
const totalTime = Date.now() - start_time;
if (totalTime > 5000) {
if (totalTime > 10000) {
console.warn(`[${req.params.shortName}] Slow Upload - Size: ${call.len} Verify System: ${validateSystemTime - start_time} Read file: ${readFileTime - validateSystemTime} Upload: ${ uploadFileTime - validateSystemTime} Save: ${saveCallTime - uploadFileTime} Stats: ${statsTime - saveCallTime} Cleanup: ${cleanupTime - statsTime} Total: ${totalTime}`);
}
span.end();
Expand Down
Loading

0 comments on commit 414599d

Please sign in to comment.