Comments (5)
How many jobs are in your database, and which database are you using (sqlite, mysql?)?
/jobs
simply returns the active jobs from memory, while /jobs/:id
performs a trip to the database to retrieve that job. If there are a lot of jobs in your database that might be the reason (especially if you're on sqlite), or the machine is so CPU-bound that reading the database becomes slow. Try purging old finished jobs (there's an endpoint for that).
from codem-transcode.
Also, I just pushed a commit (9e75228) that returns a job from memory if it exists. There's no need to go to the database if the job is already in memory.
from codem-transcode.
OH, of course! I totally forgot about sqlite... I was using it to test before. Thanks a lot @tieleman!
from codem-transcode.
np, good luck!
from codem-transcode.
Just to let you know: I applied 9e75228 and it by itself already solved the problem. Sure, I still have to use a decent database, but now I'm able to procrastinate a bit more on that on focus on other things. hehe
Thanks again @tieleman!
from codem-transcode.
Related Issues (20)
- Is it possible to generate multiple bit-rate as well as corresponding master m3u8 in a single job? HOT 8
- Idea: Incorporate provision for AWS Lambda HOT 2
- node-sqlite3 is throwing error, does it affect Transcodem? HOT 1
- Database configuration using port isn't working HOT 2
- Transcoder sometimes doesn't clear jobs from memory correctly
- Transcoding file streams HOT 1
- External mysql2 connection HOT 4
- Init script with codem-transcode and CentOS 7 not working HOT 7
- How to add file input name in the email report
- changing sqlite3 to mysql HOT 1
- Install depends on old packages and non-existing too HOT 3
- PID file
- -ss and or -t should be before -i HOT 2
- ffmpeg stderr buffer size HOT 1
- Generate SPRITE image for thumbnail HOT 7
- Object storage integration HOT 6
- v.1.0-alpha: job failed processing with bunyan usage error HOT 4
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
- hướng dẫn tạo video lên top google
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codem-transcode.