[mythtv-users] User Jobs, Exit Codes and myth_archive_job.pl

Joe Ripley vitaminjoe at gmail.com
Tue Dec 11 18:57:46 UTC 2007


On Dec 11, 2007 11:36 AM, Ma Begaj <derliebegott at gmail.com> wrote:

> There is a "status" column in the mysql table "mythconverg.jobqueue".
> This column is actually your status code.

Exactly.  However, as Chris points out in the thread you linked to,
its up to the UserJob to set the status code itself.  The MythTV code
in libmythtv doesn't do this for you.

The annoying part (the reason I patched my copy of the code) is that
libmythtv sets the status to JOB_FINISHED (0x0110) and the comment to
'Successfully Completed' as soon as the UserJob script exits.  This
effectively clobbers any status and comment that the UserJob itself
writes to the DB.

-- 
Joe Ripley
vitaminjoe at gmail.com


More information about the mythtv-users mailing list