{"action":"closed","issue":{"url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/647","repository_url":"https://api.github.com/repos/sabnzbd/sabnzbd","labels_url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/647/comments","events_url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/647/events","html_url":"https://github.com/sabnzbd/sabnzbd/issues/647","id":170112121,"number":647,"title":"Retry not shown","user":{"login":"Safihre","id":5703454,"avatar_url":"https://avatars.githubusercontent.com/u/5703454?v=3","gravatar_id":"","url":"https://api.github.com/users/Safihre","html_url":"https://github.com/Safihre","followers_url":"https://api.github.com/users/Safihre/followers","following_url":"https://api.github.com/users/Safihre/following{/other_user}","gists_url":"https://api.github.com/users/Safihre/gists{/gist_id}","starred_url":"https://api.github.com/users/Safihre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Safihre/subscriptions","organizations_url":"https://api.github.com/users/Safihre/orgs","repos_url":"https://api.github.com/users/Safihre/repos","events_url":"https://api.github.com/users/Safihre/events{/privacy}","received_events_url":"https://api.github.com/users/Safihre/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-09T08:43:58Z","updated_at":"2016-08-09T12:40:35Z","closed_at":"2016-08-09T12:40:35Z","body":"I noticed since a few commits (cannot pinpoint it), that jobs that were aborted because hopeless don't show 'Retry' and show up in Orphaned Jobs.\r\n![image](https://cloud.githubusercontent.com/assets/5703454/17510103/c7002ab4-5e1d-11e6-9200-038b9ca374bc.png)\r\n\r\nI did detective work and in ```build_history``` there is this check:\r\n```python\r\n        item['retry'] = int(bool(item.get('status') == 'Failed' and\r\n                                 path and\r\n                                 path not in retry_folders and\r\n                                 starts_with_path(path, cfg.download_dir.get_path()) and\r\n                                 os.path.exists(path)) and\r\n                                 not bool(globber(os.path.join(path, JOB_ADMIN), 'SABnzbd_n*'))\r\n```\r\nThis one is the \"problem\":\r\n```python\r\nnot bool(globber(os.path.join(path, JOB_ADMIN), 'SABnzbd_n*'))\r\n```\r\nBecause there is a file matching ```SABnzbd_n*``` left in the job's folder:\r\n![image](https://cloud.githubusercontent.com/assets/5703454/17510157/004c1c56-5e1e-11e6-8db1-573ea7fc6d3e.png)\r\n\r\nJudging from this check, there shouldn't be any  ```SABnzbd_n*``` files left, but there are. \r\nI have seen it a couple of times already over the past month or so. \r\n\r\nCould be related to #573?"}}
{"actor":{"display_login":"Safihre"}}