{"action":"created","issue":{"url":"https://api.github.com/repos/PBSPro/pbspro/issues/602","repository_url":"https://api.github.com/repos/PBSPro/pbspro","labels_url":"https://api.github.com/repos/PBSPro/pbspro/issues/602/labels{/name}","comments_url":"https://api.github.com/repos/PBSPro/pbspro/issues/602/comments","events_url":"https://api.github.com/repos/PBSPro/pbspro/issues/602/events","html_url":"https://github.com/PBSPro/pbspro/pull/602","id":307031196,"number":602,"title":"array subjob once rejected by runjob hook will never run","user":{"login":"Bhagat-Rajput","id":21076477,"avatar_url":"https://avatars2.githubusercontent.com/u/21076477?v=4","gravatar_id":"","url":"https://api.github.com/users/Bhagat-Rajput","html_url":"https://github.com/Bhagat-Rajput","followers_url":"https://api.github.com/users/Bhagat-Rajput/followers","following_url":"https://api.github.com/users/Bhagat-Rajput/following{/other_user}","gists_url":"https://api.github.com/users/Bhagat-Rajput/gists{/gist_id}","starred_url":"https://api.github.com/users/Bhagat-Rajput/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bhagat-Rajput/subscriptions","organizations_url":"https://api.github.com/users/Bhagat-Rajput/orgs","repos_url":"https://api.github.com/users/Bhagat-Rajput/repos","events_url":"https://api.github.com/users/Bhagat-Rajput/events{/privacy}","received_events_url":"https://api.github.com/users/Bhagat-Rajput/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-20T20:43:53Z","updated_at":"2018-03-23T06:44:05Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/PBSPro/pbspro/pulls/602","html_url":"https://github.com/PBSPro/pbspro/pull/602","diff_url":"https://github.com/PBSPro/pbspro/pull/602.diff","patch_url":"https://github.com/PBSPro/pbspro/pull/602.patch"},"body":"<!--- Please review your changes in preview mode -->\r\n<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n#### Bug/feature Description\r\n* array subjob once rejected by runjob hook will never run\r\n* *[PP-XXXX](https://pbspro.atlassian.net/browse/PP-XXXX)*\r\n\r\n#### Affected Platform(s)\r\n* All\r\n\r\n#### Cause / Analysis / Design\r\n* Runjob hook was rejecting the array subjobs after the job structure creation(**create_subjob()**), so in this case subjob structure was saved.\r\n\r\n#### Solution Description\r\n* Need to free the subjob structure also, if subjob has been rejected by runjob hook.\r\n\r\n#### Checklist:\r\n<!--- Use the preview button to see the checkboxes/links properly. -->\r\n<!--- Go over the following points, and put an `x` (without spaces around it) in the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] I have joined the **[pbspro community forum](http://community.pbspro.org/)**.\r\n- [x] My pull request contains a **single, signed** commit. See **[setting up gpg signature](https://pbspro.atlassian.net/wiki/display/DG/Signing+Your+Git+Commits)**.\r\n- [x] My code follows the **[coding style](https://pbspro.atlassian.net/wiki/display/DG/Coding+Standards)** of this project.\r\n- [ ] My change requires project documentation. See **[required documentation checklist](https://pbspro.atlassian.net/wiki/display/DG/Checklist+for+Developing+Features+and+Bug+Fixes)** for details.\r\n   - [ ] I have added documentation in the **[project documentation area](https://pbspro.atlassian.net/wiki/display/PD)**.\r\n- [x] I have added new **PTL test(s) to my commit**. (See **[using PTL for testing](https://pbspro.atlassian.net/wiki/display/DG/Using+PTL+for+Testing)**) *(or)*\r\n   - [ ] I have added  **manual test(s) to this pull request and explained why PTL is not appropriate** for this case.\r\n- [x] All new and existing automated tests have passed. (See **[running automated PTL tests](https://pbspro.atlassian.net/wiki/display/DG/PTL+Quick+Start+Guide)**).\r\n- [x] I have attached **test logs to this pull request** as evidence of testing/verification.\r\n\r\n\r\n__***For further information please visit the [Developer Guide Home](https://pbspro.atlassian.net/wiki/display/DG/Developer+Guide+Home).***__\r\n"},"comment":{"url":"https://api.github.com/repos/PBSPro/pbspro/issues/comments/375560093","html_url":"https://github.com/PBSPro/pbspro/pull/602#issuecomment-375560093","issue_url":"https://api.github.com/repos/PBSPro/pbspro/issues/602","id":375560093,"user":{"login":"Bhagat-Rajput","id":21076477,"avatar_url":"https://avatars2.githubusercontent.com/u/21076477?v=4","gravatar_id":"","url":"https://api.github.com/users/Bhagat-Rajput","html_url":"https://github.com/Bhagat-Rajput","followers_url":"https://api.github.com/users/Bhagat-Rajput/followers","following_url":"https://api.github.com/users/Bhagat-Rajput/following{/other_user}","gists_url":"https://api.github.com/users/Bhagat-Rajput/gists{/gist_id}","starred_url":"https://api.github.com/users/Bhagat-Rajput/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bhagat-Rajput/subscriptions","organizations_url":"https://api.github.com/users/Bhagat-Rajput/orgs","repos_url":"https://api.github.com/users/Bhagat-Rajput/repos","events_url":"https://api.github.com/users/Bhagat-Rajput/events{/privacy}","received_events_url":"https://api.github.com/users/Bhagat-Rajput/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T06:44:05Z","updated_at":"2018-03-23T06:44:05Z","author_association":"CONTRIBUTOR","body":"Rebased and squashed, ready to merge."}}
{"actor":{"display_login":"Bhagat-Rajput"}}