[mythtv] Ticket #9764: SBE's mythjobqueue preventing MBE idleness

Michael T. Dean mtdean at thirdcontact.com
Thu May 26 02:57:46 UTC 2011


On 05/25/2011 08:14 PM, MythTV wrote:
> #9764: SBE's mythjobqueue preventing MBE idleness
> -----------------------------------+----------------------------
>   Reporter:  brian@…                |          Owner:  mdean
>       Type:  Bug Report - General   |         Status:  assigned
>   Priority:  minor                  |      Milestone:  unknown
> Component:  MythTV - Mythjobqueue  |        Version:  0.24-fixes
>   Severity:  medium                 |     Resolution:
>   Keywords:                         |  Ticket locked:  0
> -----------------------------------+----------------------------
>
> Comment (by brian@…):
>
>   OK.  So Job_queue_idle.py exits>  0.  I then start mythjobqueue.  What
>   stops it when the job queue is empty again?  As I understand, once
>   mythjobqueue starts, it continues to run forever, polling the job queue,
>   yes?  Do I just keep running Job_queue_idle.py until it exits 0 and then
>   kill the mythjobqueue I started?

Yes.  You can either have a script start mythjobqueue and then run 
job_queue_idle.py in a loop (with a reasonable sleep in there--maybe 5 
or 10 minutes) until it sees 0 jobs available for processing, then kill 
the mythjobqueue process.  Or, you can start mythjobqueue however you 
want, and set up a cron job that runs a script that runs 
job_queue_idle.py and, if it returns 0, kills mythjobqueue.

You can also do other things in the script that kills mythjobqueue--such 
as power off/suspend the mythjobqueue host itself.

Mike


More information about the mythtv-dev mailing list