Page 1 of 1

Edit queue for post-processing

Posted: August 12th, 2011, 10:00 am
by MortenCB
I have a script that sftp the finished download to my home pc, and this can take some time. In the meanwhile, all other torrents have the status "waiting". There should be an option to spawn a second post-processing-script, run them all in parallell or at least edit in which order they are being run (or pause them). Some of the items in the queue with "waiting" as status might just be waiting to do some unpacking or parity checking...

Very annoying to have to wait until many downloads have completed their post-processing (sftp to home) before the item you are waiting for can do it's unpacking checks and download the rest of the par files it needs.

Re: Edit queue for post-processing

Posted: August 12th, 2011, 12:07 pm
by shypike
You can start an asynchronous script from your first script.
On Windows you use something like this:

@echo off
start 'script' /min my_real_script.cmd %1 %2 %3 %4 %5 %6 %7 %8 %9

Re: Edit queue for post-processing

Posted: August 12th, 2011, 12:15 pm
by MortenCB
I know, but then I will loose the status of the transfer, return code and output to be included in the mail of the finished download...

I think a far better solution is a setting if you want post processing scripts to done in parallell or serial, and to be able to modify the queue of downloads waiting for post processing.