[mythtv-users] User Jobs "Completed Successfully"

Chris Pinkham cpinkham at bc2va.org
Wed Mar 5 03:28:08 UTC 2008


* On Tue Mar 04, 2008 at 01:01:52PM -0800, Brad DerManouelian wrote:
> On Mar 4, 2008, at 12:53 PM, Jeff Simpson wrote:
> > Is there a way to make myth show a user job that did NOT complete
> > successfully? Or to add comments to the job completion?

Have your job update the comment column in the jobqueue table.

> > I've found that even when a job fails and returns an error code that
> > mythweb (and I assume the rest of myth) reports that job as having
> > completed with no errors. There must be some way to make it error out
> > properly, no?
> 
> There is a status column in the database:
> http://www.mythtv.org/wiki/index.php/Jobqueue_table

The status column gets updated by the JobQueue when the job terminates,
so whatever value a user job puts in there will get overwritten.

> The best explanation I found of those codes is here:
> http://www.gossamer-threads.com/lists/mythtv/users/276801#276801

These are the JobCmds, they are for telling a job to pause/resume/stop,
they aren't statuses.

For info about the JobQueue not honoring the exit status of User Jobs,
see the following thread (including my comment about welcoming a patch
by someone that modifies the JobQueue to honor the result code of
User Jobs).

http://www.gossamer-threads.com/lists/mythtv/users/304926?search_string=jobqueue%20user%20status;#304926

--
Chris


More information about the mythtv-users mailing list