{"action":"closed","number":34,"pull_request":{"url":"https://api.github.com/repos/subhasisb/pbspro/pulls/34","id":315203544,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE1MjAzNTQ0","html_url":"https://github.com/subhasisb/pbspro/pull/34","diff_url":"https://github.com/subhasisb/pbspro/pull/34.diff","patch_url":"https://github.com/subhasisb/pbspro/pull/34.patch","issue_url":"https://api.github.com/repos/subhasisb/pbspro/issues/34","number":34,"state":"closed","locked":false,"title":"Queue synchronization and deletion between multiple servers","user":{"login":"Bhagat-Rajput","id":21076477,"node_id":"MDQ6VXNlcjIxMDc2NDc3","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},"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#### Describe Bug or Feature\r\n1. If queue is deleted by one server then other servers also needs to delete the same queue from memory and it's related objects.\r\n2. queue is deleted from db but still some server showing it's stats from memory\r\n\r\n#### Describe Your Change\r\n1. Added a column to the pbs.queue table named as qu_deleted.\r\n2. Update column with value 1 upon deletion else is 0.\r\n3. During loading the queue from db if qu_deleted value is 1 this means que has been deleted already by other servers.\r\n4. If que hasn't refreshed since from past one day then que will have to update oneself with the latest data from db. \r\n\r\n","created_at":"2019-09-07T15:22:03Z","updated_at":"2019-09-09T09:31:30Z","closed_at":"2019-09-09T09:31:30Z","merged_at":"2019-09-09T09:31:30Z","merge_commit_sha":"4f9cb3e57471d86b6a279e6fd075de599ffff233","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/subhasisb/pbspro/pulls/34/commits","review_comments_url":"https://api.github.com/repos/subhasisb/pbspro/pulls/34/comments","review_comment_url":"https://api.github.com/repos/subhasisb/pbspro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/subhasisb/pbspro/issues/34/comments","statuses_url":"https://api.github.com/repos/subhasisb/pbspro/statuses/f4972a26394a3263388da982864baf218b00f37f","head":{"label":"Bhagat-Rajput:multi_svr_del_ques","ref":"multi_svr_del_ques","sha":"f4972a26394a3263388da982864baf218b00f37f","user":{"login":"Bhagat-Rajput","id":21076477,"node_id":"MDQ6VXNlcjIxMDc2NDc3","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},"repo":{"id":81805636,"node_id":"MDEwOlJlcG9zaXRvcnk4MTgwNTYzNg==","name":"pbspro","full_name":"Bhagat-Rajput/pbspro","private":false,"owner":{"login":"Bhagat-Rajput","id":21076477,"node_id":"MDQ6VXNlcjIxMDc2NDc3","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},"html_url":"https://github.com/Bhagat-Rajput/pbspro","description":"An HPC workload manager and job scheduler for desktops, clusters, and clouds.","fork":true,"url":"https://api.github.com/repos/Bhagat-Rajput/pbspro","forks_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/forks","keys_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/teams","hooks_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/hooks","issue_events_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/issues/events{/number}","events_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/events","assignees_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/assignees{/user}","branches_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/branches{/branch}","tags_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/tags","blobs_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/statuses/{sha}","languages_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/languages","stargazers_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/stargazers","contributors_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/contributors","subscribers_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/subscribers","subscription_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/subscription","commits_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/contents/{+path}","compare_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/merges","archive_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/downloads","issues_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/issues{/number}","pulls_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/pulls{/number}","milestones_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/milestones{/number}","notifications_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/labels{/name}","releases_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/releases{/id}","deployments_url":"https://api.github.com/repos/Bhagat-Rajput/pbspro/deployments","created_at":"2017-02-13T09:09:15Z","updated_at":"2019-07-29T09:28:11Z","pushed_at":"2019-09-09T08:13:32Z","git_url":"git://github.com/Bhagat-Rajput/pbspro.git","ssh_url":"git@github.com:Bhagat-Rajput/pbspro.git","clone_url":"https://github.com/Bhagat-Rajput/pbspro.git","svn_url":"https://github.com/Bhagat-Rajput/pbspro","homepage":"www.pbspro.org","size":21228,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"subhasisb:multi_server_teamwork","ref":"multi_server_teamwork","sha":"67517a140922028f0b26a5d73cda234cf8631bdb","user":{"login":"subhasisb","id":15310678,"node_id":"MDQ6VXNlcjE1MzEwNjc4","avatar_url":"https://avatars2.githubusercontent.com/u/15310678?v=4","gravatar_id":"","url":"https://api.github.com/users/subhasisb","html_url":"https://github.com/subhasisb","followers_url":"https://api.github.com/users/subhasisb/followers","following_url":"https://api.github.com/users/subhasisb/following{/other_user}","gists_url":"https://api.github.com/users/subhasisb/gists{/gist_id}","starred_url":"https://api.github.com/users/subhasisb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subhasisb/subscriptions","organizations_url":"https://api.github.com/users/subhasisb/orgs","repos_url":"https://api.github.com/users/subhasisb/repos","events_url":"https://api.github.com/users/subhasisb/events{/privacy}","received_events_url":"https://api.github.com/users/subhasisb/received_events","type":"User","site_admin":false},"repo":{"id":62032527,"node_id":"MDEwOlJlcG9zaXRvcnk2MjAzMjUyNw==","name":"pbspro","full_name":"subhasisb/pbspro","private":false,"owner":{"login":"subhasisb","id":15310678,"node_id":"MDQ6VXNlcjE1MzEwNjc4","avatar_url":"https://avatars2.githubusercontent.com/u/15310678?v=4","gravatar_id":"","url":"https://api.github.com/users/subhasisb","html_url":"https://github.com/subhasisb","followers_url":"https://api.github.com/users/subhasisb/followers","following_url":"https://api.github.com/users/subhasisb/following{/other_user}","gists_url":"https://api.github.com/users/subhasisb/gists{/gist_id}","starred_url":"https://api.github.com/users/subhasisb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subhasisb/subscriptions","organizations_url":"https://api.github.com/users/subhasisb/orgs","repos_url":"https://api.github.com/users/subhasisb/repos","events_url":"https://api.github.com/users/subhasisb/events{/privacy}","received_events_url":"https://api.github.com/users/subhasisb/received_events","type":"User","site_admin":false},"html_url":"https://github.com/subhasisb/pbspro","description":"An HPC workload manager and job scheduler for desktops, clusters, and clouds.","fork":true,"url":"https://api.github.com/repos/subhasisb/pbspro","forks_url":"https://api.github.com/repos/subhasisb/pbspro/forks","keys_url":"https://api.github.com/repos/subhasisb/pbspro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/subhasisb/pbspro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/subhasisb/pbspro/teams","hooks_url":"https://api.github.com/repos/subhasisb/pbspro/hooks","issue_events_url":"https://api.github.com/repos/subhasisb/pbspro/issues/events{/number}","events_url":"https://api.github.com/repos/subhasisb/pbspro/events","assignees_url":"https://api.github.com/repos/subhasisb/pbspro/assignees{/user}","branches_url":"https://api.github.com/repos/subhasisb/pbspro/branches{/branch}","tags_url":"https://api.github.com/repos/subhasisb/pbspro/tags","blobs_url":"https://api.github.com/repos/subhasisb/pbspro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/subhasisb/pbspro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/subhasisb/pbspro/git/refs{/sha}","trees_url":"https://api.github.com/repos/subhasisb/pbspro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/subhasisb/pbspro/statuses/{sha}","languages_url":"https://api.github.com/repos/subhasisb/pbspro/languages","stargazers_url":"https://api.github.com/repos/subhasisb/pbspro/stargazers","contributors_url":"https://api.github.com/repos/subhasisb/pbspro/contributors","subscribers_url":"https://api.github.com/repos/subhasisb/pbspro/subscribers","subscription_url":"https://api.github.com/repos/subhasisb/pbspro/subscription","commits_url":"https://api.github.com/repos/subhasisb/pbspro/commits{/sha}","git_commits_url":"https://api.github.com/repos/subhasisb/pbspro/git/commits{/sha}","comments_url":"https://api.github.com/repos/subhasisb/pbspro/comments{/number}","issue_comment_url":"https://api.github.com/repos/subhasisb/pbspro/issues/comments{/number}","contents_url":"https://api.github.com/repos/subhasisb/pbspro/contents/{+path}","compare_url":"https://api.github.com/repos/subhasisb/pbspro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/subhasisb/pbspro/merges","archive_url":"https://api.github.com/repos/subhasisb/pbspro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/subhasisb/pbspro/downloads","issues_url":"https://api.github.com/repos/subhasisb/pbspro/issues{/number}","pulls_url":"https://api.github.com/repos/subhasisb/pbspro/pulls{/number}","milestones_url":"https://api.github.com/repos/subhasisb/pbspro/milestones{/number}","notifications_url":"https://api.github.com/repos/subhasisb/pbspro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/subhasisb/pbspro/labels{/name}","releases_url":"https://api.github.com/repos/subhasisb/pbspro/releases{/id}","deployments_url":"https://api.github.com/repos/subhasisb/pbspro/deployments","created_at":"2016-06-27T06:58:51Z","updated_at":"2019-09-05T04:07:39Z","pushed_at":"2019-09-09T09:31:30Z","git_url":"git://github.com/subhasisb/pbspro.git","ssh_url":"git@github.com:subhasisb/pbspro.git","clone_url":"https://github.com/subhasisb/pbspro.git","svn_url":"https://github.com/subhasisb/pbspro","homepage":"www.pbspro.org","size":24726,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/subhasisb/pbspro/pulls/34"},"html":{"href":"https://github.com/subhasisb/pbspro/pull/34"},"issue":{"href":"https://api.github.com/repos/subhasisb/pbspro/issues/34"},"comments":{"href":"https://api.github.com/repos/subhasisb/pbspro/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/subhasisb/pbspro/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/subhasisb/pbspro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/subhasisb/pbspro/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/subhasisb/pbspro/statuses/f4972a26394a3263388da982864baf218b00f37f"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"subhasisb","id":15310678,"node_id":"MDQ6VXNlcjE1MzEwNjc4","avatar_url":"https://avatars2.githubusercontent.com/u/15310678?v=4","gravatar_id":"","url":"https://api.github.com/users/subhasisb","html_url":"https://github.com/subhasisb","followers_url":"https://api.github.com/users/subhasisb/followers","following_url":"https://api.github.com/users/subhasisb/following{/other_user}","gists_url":"https://api.github.com/users/subhasisb/gists{/gist_id}","starred_url":"https://api.github.com/users/subhasisb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subhasisb/subscriptions","organizations_url":"https://api.github.com/users/subhasisb/orgs","repos_url":"https://api.github.com/users/subhasisb/repos","events_url":"https://api.github.com/users/subhasisb/events{/privacy}","received_events_url":"https://api.github.com/users/subhasisb/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":153,"deletions":25,"changed_files":9}}
{"actor":{"display_login":"subhasisb"}}