|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#721
|
|||
|
|||
@Fuzzy Are you seeing the problem with the active queue or just the failed and completed lists? I just took a quick look at the code and I see that I fixed this problem on the active queue some time ago (and just confirmed with some testing). The other two definitely still have this problem (and I'm about to check in a fix for it). I'd like to know if you can reproduce the behaviour on the active queue (try as I may, I could not, which doesn't surprise me given the code I'm looking at that fixed this some time ago).
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#722
|
||||
|
||||
y'know, I don't rightly remember.. I'm certain I saw it in the failed queues (as that's what I'm normally clearing out). Been a long time since I ever really tried altering the active queue.. Figured it was the same coding in them all.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#723
|
|||
|
|||
Should be fixed for all grids in the new snapshot that's now available (snapshot 794).
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#724
|
||||
|
||||
Hey Slugger,
I'm looking at adding a rule to move recordings from the recording drives over to a NAS automatically - but it seems like the move recording is only supported as an INTERNAL task? Is that correct? So if there are any other tasks in the Active Queue the internal task won't run - is that correct? Quote:
I thought maybe if I put a time limit on the RuleSet for the mediashrink jobs - so that they only show up 1:00 AM and 7:00 AM this would fix it, but after they are IN the queue they don't 'disappear' at 7:00, which is probably by design based on our earlier conversation...... btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#725
|
|||
|
|||
Hmm... can you confirm that your task client(s) are still polling the server every 5 mins? (Check the clients tab in the GUI.)
External tasks should never be held up by internal tasks. Internal tasks can be held up by other internal tasks. Because the internal task queue is a single thread, serial execution, there is a known bug that if an internal task hits the top of the queue, but can't run because of pending external tasks then all the other internal tasks behind it will also be held up. There is no (easy) fix for the issue and I have no plans to fix it since eventually the internal tasks will get unstuck once all the external tasks catch up. But if you're seeing external tasks being held up then I'd really like to see a snapshot of your task queue (plus all the details you can provide). Enabling debug logging in sjq.log4j.properties, restarting SJQ, and providing the detailed logs would also be helpful.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#726
|
|||
|
|||
Quote:
After rereading your post, am I to understand that _MOVEREC tasks are being held up, but there are no external tasks pending/running for those recordings waiting to be moved? If that's the case then I'd still like you to restart SJQ with the debug logging and let the clients call home for a 20-30 mins and get me the output. If this is what you're seeing then that's a lot more plausible than my original thoughts (but still a bug).
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#727
|
||||
|
||||
Let me rephrase and maybe we will begin to understand each other
I haven't actually defined a _MOVEREC task yet because I was trying to understand the internal task rules. But since my Active Queue has a lot of pending tasks in 'WAITING' state, which get whittled down by one or two each night, I'm assuming that the internal task _MOVEREC won't get to run based on the snippet I posted above from the User Guide. There aren't any external tasks being held up, so cross that off the list. I'm just curious how to get the internal task thread to fire since I have a bit of a backlog of external tasks that will take a few weeks (at least) to clear out...... Quote:
btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#728
|
|||
|
|||
Ok, we're on the same page now.
The docs, as quoted (presumably verbatim), are incomplete. They should read like this: "An internal task for an object will only run if there are no pending or running external tasks for that same object." So, Quote:
Since the internal queue will eventually continue on (when the external jobs blocking it complete), I chose not to fix it. I can see the problem if you restrict tasks to just a few hours a day and have a backlog, but eventually it'll work itself out.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#729
|
||||
|
||||
Cool - I understand now I think. I've got some _MOVEREC tasks running now. One thing I'm seeing is that the edl files aren't getting moved with the recordings - as I see comskip tasks kicking off on all of the files once they land in the new spot.....
btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#730
|
|||
|
|||
They should be copied over... they definitely do on my system. Ensure the edls have the same prefix (i.e. abc.mpg will only move an edl if it's named exactly abc.edl). Check the task log for the _MOVEREC, are there any errors reported?
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#731
|
||||
|
||||
The log seems to indicate that they were copied over :
Quote:
btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#732
|
||||
|
||||
I think that must be it - I see in the Server logs that the artifacts for the currently active _MOVEREC task were deleted.
btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#733
|
|||
|
|||
That's possible. Are you using SJQ only to cleanup artifacts? How frequently do you run the QueueLoader (the SJQ FileCleaner runs everytime the QueueLoader runs)? If it's only set to run when a rec starts/stops then it's extremely bad luck for the QueueLoader to run at the exact time between the mpg being deleted and the artifacts being copied. Is it possible something else is also cleaning up (dirmon2, etc.)? If it was the FileCleaner that toasted the artifacts then it will be recorded in the SJQ server logs.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#734
|
||||
|
||||
I had the queue set to run every 10 minutes. For now I've just cleared out the file cleaner settings and will turn them back on once the initial 'bulk move' has finished.
btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#735
|
||||
|
||||
Would it be difficult to 'lock' the cleaner while the moverec is in progress?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#736
|
|||
|
|||
Nope. When I get a chance, I'll add it.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#737
|
||||
|
||||
I'm actually thinking the queue builder and cleaner and stuff would be better suited being treated as internal tasks, instead of separate threads. This would prevent ANY sort of conflicts, as they'd only run one at a time.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#738
|
|||
|
|||
True, but then I'd have to go back and fix the bug where the internal tasks can get stuck if one that can't run due to external tasks gets to the top of the queue first. I think I'll just synchronize the _MOVEREC and FileCleaner threads.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#739
|
|||
|
|||
First - thanks for the great tool. I've finally decided to invest the time to learn to use SJQ and am having great success automating a bunch of stuff.
The question - Is there a test for whether a specific recording is being watched? If I understand correctly, the test "IsViewingMedia" is actually a test for whether anything at all is currently being watched. It would be nice to have a quick test for whether a specific file is being watched before attempting a relink or a move. I took a quick look at the Sage API listing, but I don't see anything obvious like "IsBeingWatched"
__________________
SageTV v9.1.10.479 on Ubuntu (testing v9.1.10.479 on Debian and Win10) |
#740
|
|||
|
|||
FWIW - the SJQ User's Guide on the googlecode site won't load today.
__________________
SageTV v9.1.10.479 on Ubuntu (testing v9.1.10.479 on Debian and Win10) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sage Job Queue (SJQ) new release notifications | Slugger | Customization Announcements | 3 | 12-17-2009 09:59 AM |
Plugin: Sage Job Queue (SJQ) | Slugger | SageTV Customizations | 991 | 12-11-2009 03:52 PM |
Sage Job Queue Completed tasks problem | raffmanlt | SageTV Customizations | 2 | 08-18-2009 07:34 PM |
Comskip Monitor VS Sage Job Queue SJQ | personalt | SageTV Customizations | 6 | 03-02-2009 10:27 AM |
Plugin: SJQ v1.1.0RC1 Available - Testers Needed | Slugger | SageTV Customizations | 35 | 04-21-2008 08:12 AM |