[mythtv-commits] Ticket #4961: housekeeping wantToRun() too unreliable for mythfilldatabase on non-continously running master backends

MythTV mythtv at cvs.mythtv.org
Sat Mar 15 11:32:33 UTC 2008


#4961: housekeeping wantToRun() too unreliable for mythfilldatabase on non-
continously running master backends
-------------------------------------+--------------------------------------
 Reporter:  stefan.becker at nokia.com  |       Owner:  ijr       
     Type:  defect                   |      Status:  new       
 Priority:  major                    |   Milestone:            
Component:  mythtv                   |     Version:  0.21-fixes
 Severity:  medium                   |     Mlocked:  0         
-------------------------------------+--------------------------------------
 wantToRun() uses a randomizing formula so that not every invocation that
 falls into the valid window returns TRUE and therefore triggers the job.
 The formula makes sure that the chances of returning TRUE are getting
 higher and higher the closer the time approaches the end of the valid
 window. The housekeeping jobs are checked roughly every 5 minutes.
 Therefore thos approach works great when the backend is running
 continously.

 But if the machine is set up only to wake up for recordings &
 mythfilldatabase runs and has a short idle shutdown period it is very
 likely that wantToRun() never has a chance to return TRUE. Therefore it
 can happen very easily that mythfilldatabase is not executed even if the
 machine was programmed to specifically wake up during the valid window and
 the last run was long enough ago.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4961>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list