Some failed jobs not showing as failed in history
Posted: May 29th, 2013, 10:11 am
I have set up post-processing python scripts to detect and handle failed downloads.
'Post-Process Only Verified Jobs' is unticked, and 'empty_postproc' is ticked.
When the job appears in the history section, I assume that failed jobs (for any reason) should show as failed with the red skull icon.
In the following cases, they do:
» Aborted, cannot be completed
» Repair failed, not enough repair blocks
» Aborted, encryption detected
However in the next case, they don't, and shows the 'successful' star icon instead:
» Unpacking failed, CRC error
In all four cases, SABnzbd correctly passes a non-zero value to the script for parameter number 7. So I'm able to take appropriate action for failed jobs, but they don't always show as failed in the history, regardless of the exit code I choose to return from the script.
[Version 0.7.11 on Linux]
'Post-Process Only Verified Jobs' is unticked, and 'empty_postproc' is ticked.
When the job appears in the history section, I assume that failed jobs (for any reason) should show as failed with the red skull icon.
In the following cases, they do:
» Aborted, cannot be completed
» Repair failed, not enough repair blocks
» Aborted, encryption detected
However in the next case, they don't, and shows the 'successful' star icon instead:
» Unpacking failed, CRC error
In all four cases, SABnzbd correctly passes a non-zero value to the script for parameter number 7. So I'm able to take appropriate action for failed jobs, but they don't always show as failed in the history, regardless of the exit code I choose to return from the script.
[Version 0.7.11 on Linux]