SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   SageTV Customizations (http://forums.sagetv.com/forums/forumdisplay.php?f=27)
-   -   Sage Job Queue Completed tasks problem (http://forums.sagetv.com/forums/showthread.php?t=43648)

raffmanlt 08-17-2009 10:26 PM

Sage Job Queue Completed tasks problem
 
This is my first post for help but I thank all of you for your wonderful info and support that is on this forum!!

I have sjq setup to run comskip and it is queing up files and successfully creating txt files which do work in sage. However only 1 has ever gone into the completed tasks area and after they are processed the next run of the queue starter reprocesses them all again. Well previously they were now when I do a manual start nothing is in the active job queue. If I run debug on them it is properly processing the if conditions. Here ae my rulesets:

Server:
if [IsTV == true && IsScheduledRecording == true && ChannelNumber != "23" && ChannelNumber != "17" && IsWatched == "false" && (FileExists != "%d%/%p%.edl" || FileExists != "%d%/%p%.txt") && Filename =$ ".mpg" && IsViewingMedia == "false"] {
COMSKIP
}

Client ruleset:
:MAXPROCS 4
COMSKIP {
:MAX 0
:CPU "LOW"
"C:/comskip/comskip.exe \"%c%\""
}

I read that some need to be preceded with a tab instead of spaces but when I try tab seems to do nothing. Oh also this client is also on the server.

ok so am I missing something?


The following are the results from running debug on one of the failed files

2009/08/17 22:47:17.252 QueueLoader awakened: sleep interrupted
2009/08/17 22:47:17.409 Using MediaMask: 'T'
2009/08/17 22:47:17.409 Processing 'NCIS'...
2009/08/17 22:47:17.409 Line 1: Evaluating 'IsTV == "true"' == true
2009/08/17 22:47:17.409 Line 1: Evaluating 'IsScheduledRecording == "true"' == true
2009/08/17 22:47:17.409 Line 1: Evaluating 'ChannelNumber != "23"' == true
2009/08/17 22:47:17.409 Line 1: Evaluating 'ChannelNumber != "17"' == true
2009/08/17 22:47:17.409 Line 1: Evaluating 'IsWatched == "false"' == true
2009/08/17 22:47:17.409 MediaVar '%s%' == 'Enigma'
2009/08/17 22:47:17.409 MediaVar '%y%' == ''
2009/08/17 22:47:17.409 MediaVar '%c%' == 'J:\Sage TV Recordings\NCIS-Enigma-464763-0.mpg'
2009/08/17 22:47:17.409 MediaVar '%d%' == 'J:\Sage TV Recordings'
2009/08/17 22:47:17.409 MediaVar '%f%' == 'NCIS-Enigma-464763-0.mpg'
2009/08/17 22:47:17.409 MediaVar '%e%' == 'mpg'
2009/08/17 22:47:17.409 MediaVar '%p%' == 'NCIS-Enigma-464763-0'
2009/08/17 22:47:17.409 MediaVar '%t%' == 'NCIS'
2009/08/17 22:47:17.409 Expanded '%d%/%p%.edl' to 'J:\Sage TV Recordings\NCIS-Enigma-464763-0.edl'
2009/08/17 22:47:17.409 Line 1: Evaluating 'FileExists != "%d%/%p%.edl"' == true
2009/08/17 22:47:17.409 MediaVar '%s%' == 'Enigma'
2009/08/17 22:47:17.409 MediaVar '%y%' == ''
2009/08/17 22:47:17.409 MediaVar '%c%' == 'J:\Sage TV Recordings\NCIS-Enigma-464763-0.mpg'
2009/08/17 22:47:17.409 MediaVar '%d%' == 'J:\Sage TV Recordings'
2009/08/17 22:47:17.409 MediaVar '%f%' == 'NCIS-Enigma-464763-0.mpg'
2009/08/17 22:47:17.409 MediaVar '%e%' == 'mpg'
2009/08/17 22:47:17.409 MediaVar '%p%' == 'NCIS-Enigma-464763-0'
2009/08/17 22:47:17.409 MediaVar '%t%' == 'NCIS'
2009/08/17 22:47:17.409 Expanded '%d%/%p%.txt' to 'J:\Sage TV Recordings\NCIS-Enigma-464763-0.txt'
2009/08/17 22:47:17.409 Line 1: Evaluating 'FileExists != "%d%/%p%.txt"' == false
2009/08/17 22:47:17.409 MediaVar '%s%' == 'Enigma'
2009/08/17 22:47:17.409 MediaVar '%y%' == ''
2009/08/17 22:47:17.409 MediaVar '%c%' == 'J:\Sage TV Recordings\NCIS-Enigma-464763-0.mpg'
2009/08/17 22:47:17.409 MediaVar '%d%' == 'J:\Sage TV Recordings'
2009/08/17 22:47:17.409 MediaVar '%f%' == 'NCIS-Enigma-464763-0.mpg'
2009/08/17 22:47:17.409 MediaVar '%e%' == 'mpg'
2009/08/17 22:47:17.409 MediaVar '%p%' == 'NCIS-Enigma-464763-0'
2009/08/17 22:47:17.409 MediaVar '%t%' == 'NCIS'
2009/08/17 22:47:17.409 Line 1: Evaluating 'Filename =$ ".mpg"' == true
2009/08/17 22:47:17.409 Line 1: Evaluating 'IsViewingMedia == "false"' == false
2009/08/17 22:47:17.581 LogCleaner instance started
2009/08/17 22:47:17.612 FileCleaner instance started
2009/08/17 22:47:18.831 LogCleaner instance finished [1235ms]
2009/08/17 22:47:20.846 FileCleaner instance finished [3234ms]
2009/08/17 22:47:23.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:48:08.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:48:24.877 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:48:53.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:49:38.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:50:06.565 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:50:23.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:50:24.956 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:51:08.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:51:53.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:52:24.956 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:52:38.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:53:23.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:54:08.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:54:24.956 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:54:53.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:55:06.581 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:55:38.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:56:23.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:56:24.956 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings
2009/08/17 22:57:08.190 WARNING: All client connections are being accepted and processed, please consider setting up client restrictions in SJQ settings

--------------------

nyplayer 08-18-2009 10:19 AM

This is has been discussed and the work around is here.

http://forums.sagetv.com/forums/show...&postcount=853

raffmanlt 08-18-2009 07:34 PM

SJQ Failed tasks
 
Thank you so much Slugger and what a cool tool! I am not a programmer but I spent a ton of time reading and searching, trying to wrap my mind around that part of it. Derek suggested the :ReturnCode 1 fix but I was not certain where to put it in the client code. It turns out I put it in the wrong place. The family thanks you I was getting heat for the comskip function not working as I frantically tried to sort all of this out.


All times are GMT -6. The time now is 05:04 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.