[mythtv-users] Backend not honoring "MaxSimultaneousJobs"

Jon Larson jtlarson at u.washington.edu
Tue Sep 25 13:47:46 UTC 2007

Chris Pinkham wrote:
> * On Mon Sep 24, 2007 at 05:48:23PM -0700, Jon Larson wrote:
>> I've got 3 backends that are supposed to share UserJobs, with each 
>> backend limited to 2 maximum simultaneous jobs. I've also set MythTV to 
>> allow jobs to run on any server--not just the recording server.
>> In the past this has worked perfectly, but I just queued up 4 jobs in 
>> quick succession and I noticed that one backend has claimed all 4 jobs: 
>> it started 2 of the jobs, and has the other 2 jobs in it's queue.
>> How can I force each backend to only 'claim' as many jobs as it can 
>> execute and leave other pending jobs for the remaining servers?
> The JobQueue does not claim a job until it tries to run that job, so
> either it tried to run the other two and failed or they were put in
> the jobqueue table with the hostname field already filled in.
> Run your frontend and backend with "-v database" and see which case is
> occurring.
> It sounds like it may be a settings issue, so check for duplicate entries
> in your settings table for the JobsRunOnRecordHost and
> JobQueueMaxSimultaneousJobs settings.
> select *
> 	from jobqueue
> 	where value in ( 'JobsRunOnRecordHost', 'JobQueueMaxSimultaneousJobs');
> Both of those are global settings, so there should only be one row
> for each setting and the hostname should be NULL on those rows.
Thanks Chris--'JobsRunOnRecordHost' is set correctly; however I can see 
that there are 3 'JobQueueMaxSimultaneousJobs'--each one bears the 
hostname of one of the servers--so that's  probably the problem. I am at 
a loss to explain how they got there since I run a fairly basic setup on 
Knoppmyth R5F1. Could setting this value via mythtv-setup do this?

There are also duplicate entries (for each host) for:  
'JobQueueCheckFrequency' 'JobQueueWindowStart' 'JobQueueWindowEnd' and 
'JobQueueCPU'---Does anyone know if these should be there?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070925/5f1f9928/attachment.htm 

More information about the mythtv-users mailing list