[mythtv-commits] Ticket #13604: Blocking shutdown because of active jobs vs. JobQueueWindow

MythTV noreply at mythtv.org
Wed Apr 8 06:20:25 UTC 2020


#13604: Blocking shutdown because of active jobs vs. JobQueueWindow
--------------------------------------+--------------------------
     Reporter:  pmhahn                |      Owner:  (none)
         Type:  Bug Report - General  |     Status:  new
     Priority:  minor                 |  Milestone:  needs_triage
    Component:  MythTV - General      |    Version:  v31-fixes
     Severity:  low                   |   Keywords:  jobqueue
Ticket locked:  0                     |
--------------------------------------+--------------------------
 To save power I have configured MytvTV to shutdown in the night. I had
 also configured a `JobQueueWindows` to prevent jobs from starting very
 late as I find it okay to delay the jobs until MythTV is next woken up.
 {{{
 JobQueueWindowStart     07:00
 JobQueueWindowEnd       23:00
 }}}
 This morning I noticed that the box was still running.
 Yesterday evening there was a late recording which ended just after the
 `JobQueueWindows` closed:

 > 2020-04-07 23:15:00.521679 N  Finished Recording: Container: MPEG2-TS
 Video Codec: mpeg2video (720x576 A/R: 3 25fps) Audio Codec: ac3

 Looking at `journalctl -u mythtv-backend.service` I found the following
 message repeated multiple times:

 > 2020-04-07 23:15:00.567976 N  Blocking shutdown because of active jobs

 To me this looks like the newly added jobs to lookup Metadata and to
 transcode the recording blocked MythTV from shutting down for the night.

 It would be nice if MythTV would no block the shutdown because of pending
 jobs.
 Optionally make it configurable like
 - block shutdown if there are pending jobs
 - delay jobs until next start (whenever that might be)
 - delay jobs until next start and schedule wakeup for next
 `JobQueueWindowsStart`
 - allow to delay running the job up to X hours

 For now I disabled the Job Queue windows.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13604>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list