Help with retrying failed jobs (using API)
Posted: October 9th, 2016, 4:15 am
I am having a few jobs fail due to articles not being propagated to the NNTP server I am using, they are there later when I try. I am currently manually pressing Retry but am trying to automate that process in a script I'm working on. I'm struggling to figure out what I'm doing wrong (if at all) with the API. I am using Sabnzbd 1.1.1RC1
I did this to see what failed jobs I had:
I then tried:
which retured this:
but then it did nothing.
I then located the nzo_id of the failed job which was something like SABnzbd_nzo_kxgwDV and also tried to retry the individual job using this:
which never worked either, I also tried the job# as well but didn't think that was correct.
What am I doing wrong? Any help would be appreciated.
I did this to see what failed jobs I had:
Code: Select all
http://server:8080/sabnzbd/api?mode=history&failed_only=1&apikey=<myAPIkey>&output=xml
Code: Select all
http://server:8080/sabnzbd/api?mode=retry_all&apikey=<myAPIkey>&output=xml
Code: Select all
<status><function retry_all_jobs at 0xb6376a30></status>
I then located the nzo_id of the failed job which was something like SABnzbd_nzo_kxgwDV and also tried to retry the individual job using this:
Code: Select all
http://server:8080/sabnzbd/api?mode=retry&job=SABnzbd_nzo_kxgwDV&apikey=<myAPIkey>&output=xml
What am I doing wrong? Any help would be appreciated.