[mythtv-users] Job priority within Myth's job queue

G. Panula mythtv-users at kablah.com
Mon Apr 10 20:33:34 UTC 2006


Hi,

Is there a way to give Commercial Flagging jobs priority over 
Transcoding jobs within Myth's job queue?

Here is the scenario...
Front-end has the tuner card which writes to a Back-end.
Front-end is only allowed to process jobs(e.g. commercial flagging) from 
the queue only during the wee hours of the morning when no one is likely 
to be watching tv.
The Back-end processes jobs 24x7.
"Real-time" commercial flagging is enabled.
Commercial flagging and Transcoding are enabled for all recordings.

When recording a line-up of programs say
5:30pm That 70s show
6:00pm The Simpsons
6:30pm The Simpsons

Front-end starts recording "That 70s show" and adds a commercial 
flagging job to the queue.  Back-end sees the job and starts it.

Then the front-end finishes recording "That 70s show", adds a transcode 
job, starts recording the first "Simpsons" and adds a commercial 
flagging job for it.

The *problem* is the transcoding job is the next job in the queue and 
the back-end faithfully starts working on it.  Even if I have the 
back-end only checking the queue every 5 minutes, it still picks the 
transcoding job first.  I think jobs are just processed on age; oldest 
one first aka FIFO(First In First Out)

Ideally the commercial flagging jobs should have a higher priority than 
transcoding job or at least an option to say do commercial flagging jobs 
first.

I am using mythtv-0.19_p9163-r1 on a couple of Gentoo boxes.

Thanks,
   greg



More information about the mythtv-users mailing list