Hi,
Is there a way to post-process multiple downloads?
For me, the real issue is with the post processing scripts that I am running. The actual verifying +extraction step takes longer than my post-processing scripts Is there a way to start verifying+extract while the post-processing script is running?
I am running it in linux on a debian machine.
[solved] Post-processing multiple downloads
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
[solved] Post-processing multiple downloads
Last edited by thejinx0r on October 16th, 2011, 4:49 pm, edited 2 times in total.
Re: Post-processing multiple downloads
Of course not. The post-processing script is supposed to work with
the results of the verification/extraction process.
What does your PP script do?
the results of the verification/extraction process.
What does your PP script do?
Re: Post-processing multiple downloads
I guess I miss-phrased what I was trying to say.
My PP sends the downloaded files from my server to my nas through rsync.
And I'd like to have my PP run, and have another download get verified/extracted.
Ideally, I'd like to have multiple downloads get verified and extracted at the same time.
------------
solved:
What I had tried to do in the past was to have a crontab to just run my rsync file.
But, there was a bug where it would still run despite checking for a lock file. The issue was the lock file was being written somewhere not accessible. So, it would never be created. Now, I just write my lock file to /tmp and it works fine now.
My PP sends the downloaded files from my server to my nas through rsync.
And I'd like to have my PP run, and have another download get verified/extracted.
Ideally, I'd like to have multiple downloads get verified and extracted at the same time.
------------
solved:
What I had tried to do in the past was to have a crontab to just run my rsync file.
But, there was a bug where it would still run despite checking for a lock file. The issue was the lock file was being written somewhere not accessible. So, it would never be created. Now, I just write my lock file to /tmp and it works fine now.
Last edited by thejinx0r on October 16th, 2011, 4:51 pm, edited 1 time in total.
Re: Post-processing multiple downloads
The CPU and disk are maxed out by as single post-processing job,
running them in parallel is not useful.
If you want your own script to run in parallel,
then use an intermediate script that starts the copy-script asynchronously.
On Windows that would be:
@echo off
start c:\path\to\copy-script.cmd %1 %2 %3 %4 %5 %6 %7 %8 %9
running them in parallel is not useful.
If you want your own script to run in parallel,
then use an intermediate script that starts the copy-script asynchronously.
On Windows that would be:
@echo off
start c:\path\to\copy-script.cmd %1 %2 %3 %4 %5 %6 %7 %8 %9

