Opened 17 years ago

Closed 17 years ago

#3403 closed patch (fixed)

Stop automatic shutdown from occurring whilst jobs are still pending

Reported by: anonymous Owned by: cpinkham
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The attached patch fixes an issue where mythtv will incorrectly shutdown when jobs are still pending. This occurs when the shutdown check occurs after one job has completed and the next has not yet started.

This patch makes some changes to mythshutdown, to check to see if there are jobs pending in the queue. It takes the job run window into account and also will not shutdown if the job queue is set to start within 15 minutes.

This also fixes the problem when the shutdown will occur when user jobs are running.

Chris Pinkham has been reviewing this patch.

See the following threads for more info: http://www.gossamer-threads.com/lists/mythtv/dev/265782

http://www.gossamer-threads.com/lists/mythtv/dev/263834

Attachments (1)

shutdown-jobs.diff (10.6 KB) - added by matt.doran@… 17 years ago.

Download all attachments as: .zip

Change History (3)

Changed 17 years ago by matt.doran@…

Attachment: shutdown-jobs.diff added

comment:1 Changed 17 years ago by stuartm

Owner: changed from Isaac Richards to cpinkham

comment:2 Changed 17 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [13610]) Add intelligence to Myth's shutdown check code to look for pending or running jobs in the JobQueue? when determining whether to shutdown or not.

Closes #3403 using patch by Matt Doran.

Note: See TracTickets for help on using tickets.