Skip to content

Commit

Permalink
Merge pull request #97 from AVtheking/wallet
Browse files Browse the repository at this point in the history
limited no of workers
  • Loading branch information
AVtheking authored Nov 26, 2023
2 parents cf53f02 + 1881a51 commit 88c870f
Show file tree
Hide file tree
Showing 31 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/teacher_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ const teacherCtrl = {
const videofile = req.files.video;
videoConversionQueue = new Queue("videoConversion", {
redis: redisConfig,
limiter: {
max: 1,
duration: 1000,
},
concurrency: 2
});

let course = await Course.findById(courseId);
Expand Down Expand Up @@ -328,6 +333,7 @@ const teacherCtrl = {
// coursess.duration += du;
// console.log("Duration updated");
coursess = await coursess.save();
return { status: "completed" };
// console.log("Video uploaded successfully");
});
} catch (e) {
Expand Down
Binary file added public/course_notes/notes-1700998959944.pdf
Binary file not shown.
Binary file added public/course_notes/notes-1700998975377.pdf
Binary file not shown.
Binary file added public/course_notes/notes-1700998978036.pdf
Binary file not shown.
Binary file added public/course_notes/notes-1700998979573.pdf
Binary file not shown.
Binary file added public/course_notes/notes-1700998981645.pdf
Binary file not shown.
Binary file added public/course_notes/notes-1700998983648.pdf
Binary file not shown.
Binary file added public/course_videos/video-1700998959873-144p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998959873-360p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998959873-720p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998959873.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998975347-144p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998975347-360p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998975347-720p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998975347.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998978011-144p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998978011-360p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998978011-720p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998978011.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998979552-144p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998979552-360p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998979552-720p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998979552.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998981618-144p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998981618-360p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998981618-720p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998981618.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998983631-144p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998983631-360p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998983631-720p.mp4
Binary file not shown.
Binary file added public/course_videos/video-1700998983631.mp4
Binary file not shown.

0 comments on commit 88c870f

Please sign in to comment.