<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 12/2/2013 7:12 PM, Mark Perkins
      wrote:<br>
    </div>
    <blockquote cite="mid:BLU174-W389597902337F0A647EBD9B7D50@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Hopefully an easy question: What is the
        HouseKeeperTask JobQueueRecover and what causes it to run?<br>
        <br>
        I assume the answer to the first part will be 'Recover job
        queue' but hoping for a little more info.<br>
        <br>
        I had a user job running for a long time (basically a transcode
        script that pauses in a queue until it is its turn to run in the
        transcode queue). When it runs it checks for the presence of a
        temp directory (to prevent multiple simultaneous identical jobs)
        and if the directory is not present it creates it and then
        pauses waiting for other jobs in front of it to finish. When it
        finally completes it deletes the temp directory.<br>
        <br>
        A job I was running had been queued for a while (since Dec 2
        05:49:11). At Dec 3 10:17:33(some 29hrs later) the
        HouseKeeperTask JobQueueRecover ran even though the script was
        happily in progress (and still is, it was actually out of idle
        by that stage and was transcoding). It immediately tried to
        rerun the script, which failed because the temp directory to
        prevent multiple runs of the same script on the same file was
        present. Even though there were multiple User Jobs running at
        the time it was the only one to be restarted.<br>
        <br>
        Any idea's on where to look to see why the JobQueueRecover
        decided to run? There is nothing at all in the logs for 16min
        before the housekeeper ran. A couple of log entries below:<br>
        <br>
        <style type="text/css">P { margin-bottom: 0.21cm; }</style>
        <p style="margin-bottom: 0cm">Dec 2 05:49:11 mark-P5K-Deluxe
          mythbackend: mythbackend[9214]: I UserJob_7351
          jobqueue.cpp:2409
          (DoUserJobThread) JobQueue: Started MythTC FIFO Cut Export to
          NAS for
          Zodiac recorded from channel 1090 at 2013-11-29T09:57:00Z</p>
        <p style="margin-bottom: 0cm"><br>
        </p>
        <p style="margin-bottom: 0cm">&#8230;</p>
        <p style="margin-bottom: 0cm"><br>
        </p>
        <p style="margin-bottom: 0cm">Dec 3 10:17:33 mark-P5K-Deluxe
          mythbackend: mythbackend[9214]: I CoreContext
          housekeeper.cpp:677
          (Run) Queueing HouseKeeperTask 'JobQueueRecover'.
        </p>
        <p style="margin-bottom: 0cm">Dec 3 10:17:33 mark-P5K-Deluxe
          mythbackend: mythbackend[9214]: I HouseKeeping
          housekeeper.cpp:133
          (Run) Running HouseKeeperTask 'JobQueueRecover'.
        </p>
        <p style="margin-bottom: 0cm">Dec 3 10:17:33 mark-P5K-Deluxe
          mythbackend: mythbackend[9214]: I HouseKeeping
          housekeeper.cpp:151
          (Run) HouseKeeperTask 'JobQueueRecover' Finished Successfully.
        </p>
        <p style="margin-bottom: 0cm">Dec 3 10:17:48 mark-P5K-Deluxe
          mythbackend: mythbackend[9214]: I UserJob_7351
          jobqueue.cpp:2409
          (DoUserJobThread) JobQueue: Started MythTC FIFO Cut Export to
          NAS for
          Zodiac recorded from channel 1090 at 2013-11-29T09:57:00Z</p>
        <p style="margin-bottom: 0cm">Dec 3 10:17:49 mark-P5K-Deluxe
          mythbackend: mythbackend[9214]: E UserJob_7351
          jobqueue.cpp:2444
          (DoUserJobThread) JobQueue: User Job
          'mythTCfifodir_cut_export_nas.pl
          --file=1090_20131129095700.mpg --verbose' failed.<br>
        </p>
      </div>
    </blockquote>
    <br>
    The task looks through the JobQueue table for any job that is
    thought to be in some form of running state and has seen no activity
    in over 24 hours.&nbsp; It assumes something bad has happened, and
    re-queues the job.<br>
  </body>
</html>