{"action":"created","comment":{"url":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/comments/140374084","pull_request_review_id":64439605,"id":140374084,"diff_hunk":"@@ -0,0 +1,18 @@\n+#!/bin/bash\n+\n+\n+# Lists the process ids for all the running worker processes.\n+# Kills the running worker processes.\n+# Runs new processes for worker and lists their ids.\n+\n+for pid in `ps -ef | grep 'scripts/workers/submission_worker.py' | grep -v 'grep' | awk '{print $2}'` ; do echo $pid ; done\n+\n+for pid in `ps -ef | grep 'scripts/workers/submission_worker.py' | grep -v 'grep' | awk '{print $2}'` ; do kill $pid ; done\n+\n+# Running four consumer or receiver processes in background. We can increase its number for further requirements.\n+python 'scripts/workers/submission_worker.py' &\n+python 'scripts/workers/submission_worker.py' &\n+python 'scripts/workers/submission_worker.py' &\n+python 'scripts/workers/submission_worker.py' &","path":"scripts/workers/restart_rabbitmq_worker.sh","position":16,"original_position":16,"commit_id":"33fbf2537e941de86753b1fbbc3cd02472694233","original_commit_id":"33fbf2537e941de86753b1fbbc3cd02472694233","user":{"login":"deshraj","id":2945708,"avatar_url":"https://avatars3.githubusercontent.com/u/2945708?v=4","gravatar_id":"","url":"https://api.github.com/users/deshraj","html_url":"https://github.com/deshraj","followers_url":"https://api.github.com/users/deshraj/followers","following_url":"https://api.github.com/users/deshraj/following{/other_user}","gists_url":"https://api.github.com/users/deshraj/gists{/gist_id}","starred_url":"https://api.github.com/users/deshraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deshraj/subscriptions","organizations_url":"https://api.github.com/users/deshraj/orgs","repos_url":"https://api.github.com/users/deshraj/repos","events_url":"https://api.github.com/users/deshraj/events{/privacy}","received_events_url":"https://api.github.com/users/deshraj/received_events","type":"User","site_admin":false},"body":"Instead of hardcoding this four times, can set a variable that decides that how many worker processes we need to run? ","created_at":"2017-09-21T22:22:08Z","updated_at":"2017-09-21T22:22:08Z","html_url":"https://github.com/Cloud-CV/EvalAI/pull/1126#discussion_r140374084","pull_request_url":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/1126","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/comments/140374084"},"html":{"href":"https://github.com/Cloud-CV/EvalAI/pull/1126#discussion_r140374084"},"pull_request":{"href":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/1126"}}},"pull_request":{"url":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/1126","id":134325945,"html_url":"https://github.com/Cloud-CV/EvalAI/pull/1126","diff_url":"https://github.com/Cloud-CV/EvalAI/pull/1126.diff","patch_url":"https://github.com/Cloud-CV/EvalAI/pull/1126.patch","issue_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/1126","number":1126,"state":"open","locked":false,"title":"Add automatic reloading of rabbitmq worker from django admin.","user":{"login":"RishabhJain2018","id":12206047,"avatar_url":"https://avatars2.githubusercontent.com/u/12206047?v=4","gravatar_id":"","url":"https://api.github.com/users/RishabhJain2018","html_url":"https://github.com/RishabhJain2018","followers_url":"https://api.github.com/users/RishabhJain2018/followers","following_url":"https://api.github.com/users/RishabhJain2018/following{/other_user}","gists_url":"https://api.github.com/users/RishabhJain2018/gists{/gist_id}","starred_url":"https://api.github.com/users/RishabhJain2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RishabhJain2018/subscriptions","organizations_url":"https://api.github.com/users/RishabhJain2018/orgs","repos_url":"https://api.github.com/users/RishabhJain2018/repos","events_url":"https://api.github.com/users/RishabhJain2018/events{/privacy}","received_events_url":"https://api.github.com/users/RishabhJain2018/received_events","type":"User","site_admin":false},"body":"- [x] **Dependency:** #1161 should be merged before this PR.\r\nfixes #1128 @deshraj Please review the PR.","created_at":"2017-08-06T13:11:31Z","updated_at":"2017-09-21T22:22:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"282c8f7b167b4caead5fb7d750205a18817df633","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/1126/commits","review_comments_url":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/1126/comments","review_comment_url":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/1126/comments","statuses_url":"https://api.github.com/repos/Cloud-CV/EvalAI/statuses/33fbf2537e941de86753b1fbbc3cd02472694233","head":{"label":"Cloud-CV:rabbitmq","ref":"rabbitmq","sha":"33fbf2537e941de86753b1fbbc3cd02472694233","user":{"login":"Cloud-CV","id":20895851,"avatar_url":"https://avatars0.githubusercontent.com/u/20895851?v=4","gravatar_id":"","url":"https://api.github.com/users/Cloud-CV","html_url":"https://github.com/Cloud-CV","followers_url":"https://api.github.com/users/Cloud-CV/followers","following_url":"https://api.github.com/users/Cloud-CV/following{/other_user}","gists_url":"https://api.github.com/users/Cloud-CV/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloud-CV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloud-CV/subscriptions","organizations_url":"https://api.github.com/users/Cloud-CV/orgs","repos_url":"https://api.github.com/users/Cloud-CV/repos","events_url":"https://api.github.com/users/Cloud-CV/events{/privacy}","received_events_url":"https://api.github.com/users/Cloud-CV/received_events","type":"Organization","site_admin":false},"repo":{"id":71516397,"name":"EvalAI","full_name":"Cloud-CV/EvalAI","owner":{"login":"Cloud-CV","id":20895851,"avatar_url":"https://avatars0.githubusercontent.com/u/20895851?v=4","gravatar_id":"","url":"https://api.github.com/users/Cloud-CV","html_url":"https://github.com/Cloud-CV","followers_url":"https://api.github.com/users/Cloud-CV/followers","following_url":"https://api.github.com/users/Cloud-CV/following{/other_user}","gists_url":"https://api.github.com/users/Cloud-CV/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloud-CV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloud-CV/subscriptions","organizations_url":"https://api.github.com/users/Cloud-CV/orgs","repos_url":"https://api.github.com/users/Cloud-CV/repos","events_url":"https://api.github.com/users/Cloud-CV/events{/privacy}","received_events_url":"https://api.github.com/users/Cloud-CV/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cloud-CV/EvalAI","description":":cloud: Evaluating state of the art in AI","fork":false,"url":"https://api.github.com/repos/Cloud-CV/EvalAI","forks_url":"https://api.github.com/repos/Cloud-CV/EvalAI/forks","keys_url":"https://api.github.com/repos/Cloud-CV/EvalAI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cloud-CV/EvalAI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cloud-CV/EvalAI/teams","hooks_url":"https://api.github.com/repos/Cloud-CV/EvalAI/hooks","issue_events_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/events{/number}","events_url":"https://api.github.com/repos/Cloud-CV/EvalAI/events","assignees_url":"https://api.github.com/repos/Cloud-CV/EvalAI/assignees{/user}","branches_url":"https://api.github.com/repos/Cloud-CV/EvalAI/branches{/branch}","tags_url":"https://api.github.com/repos/Cloud-CV/EvalAI/tags","blobs_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cloud-CV/EvalAI/statuses/{sha}","languages_url":"https://api.github.com/repos/Cloud-CV/EvalAI/languages","stargazers_url":"https://api.github.com/repos/Cloud-CV/EvalAI/stargazers","contributors_url":"https://api.github.com/repos/Cloud-CV/EvalAI/contributors","subscribers_url":"https://api.github.com/repos/Cloud-CV/EvalAI/subscribers","subscription_url":"https://api.github.com/repos/Cloud-CV/EvalAI/subscription","commits_url":"https://api.github.com/repos/Cloud-CV/EvalAI/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cloud-CV/EvalAI/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cloud-CV/EvalAI/contents/{+path}","compare_url":"https://api.github.com/repos/Cloud-CV/EvalAI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cloud-CV/EvalAI/merges","archive_url":"https://api.github.com/repos/Cloud-CV/EvalAI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cloud-CV/EvalAI/downloads","issues_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues{/number}","pulls_url":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls{/number}","milestones_url":"https://api.github.com/repos/Cloud-CV/EvalAI/milestones{/number}","notifications_url":"https://api.github.com/repos/Cloud-CV/EvalAI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cloud-CV/EvalAI/labels{/name}","releases_url":"https://api.github.com/repos/Cloud-CV/EvalAI/releases{/id}","deployments_url":"https://api.github.com/repos/Cloud-CV/EvalAI/deployments","created_at":"2016-10-21T00:51:45Z","updated_at":"2017-09-21T17:06:19Z","pushed_at":"2017-09-21T22:13:49Z","git_url":"git://github.com/Cloud-CV/EvalAI.git","ssh_url":"git@github.com:Cloud-CV/EvalAI.git","clone_url":"https://github.com/Cloud-CV/EvalAI.git","svn_url":"https://github.com/Cloud-CV/EvalAI","homepage":"https://evalai.cloudcv.org/","size":7736,"stargazers_count":271,"watchers_count":271,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":88,"mirror_url":null,"open_issues_count":59,"forks":88,"open_issues":59,"watchers":271,"default_branch":"master"}},"base":{"label":"Cloud-CV:master","ref":"master","sha":"af86326a6777647f86b1ba95089268424da42895","user":{"login":"Cloud-CV","id":20895851,"avatar_url":"https://avatars0.githubusercontent.com/u/20895851?v=4","gravatar_id":"","url":"https://api.github.com/users/Cloud-CV","html_url":"https://github.com/Cloud-CV","followers_url":"https://api.github.com/users/Cloud-CV/followers","following_url":"https://api.github.com/users/Cloud-CV/following{/other_user}","gists_url":"https://api.github.com/users/Cloud-CV/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloud-CV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloud-CV/subscriptions","organizations_url":"https://api.github.com/users/Cloud-CV/orgs","repos_url":"https://api.github.com/users/Cloud-CV/repos","events_url":"https://api.github.com/users/Cloud-CV/events{/privacy}","received_events_url":"https://api.github.com/users/Cloud-CV/received_events","type":"Organization","site_admin":false},"repo":{"id":71516397,"name":"EvalAI","full_name":"Cloud-CV/EvalAI","owner":{"login":"Cloud-CV","id":20895851,"avatar_url":"https://avatars0.githubusercontent.com/u/20895851?v=4","gravatar_id":"","url":"https://api.github.com/users/Cloud-CV","html_url":"https://github.com/Cloud-CV","followers_url":"https://api.github.com/users/Cloud-CV/followers","following_url":"https://api.github.com/users/Cloud-CV/following{/other_user}","gists_url":"https://api.github.com/users/Cloud-CV/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloud-CV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloud-CV/subscriptions","organizations_url":"https://api.github.com/users/Cloud-CV/orgs","repos_url":"https://api.github.com/users/Cloud-CV/repos","events_url":"https://api.github.com/users/Cloud-CV/events{/privacy}","received_events_url":"https://api.github.com/users/Cloud-CV/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cloud-CV/EvalAI","description":":cloud: Evaluating state of the art in AI","fork":false,"url":"https://api.github.com/repos/Cloud-CV/EvalAI","forks_url":"https://api.github.com/repos/Cloud-CV/EvalAI/forks","keys_url":"https://api.github.com/repos/Cloud-CV/EvalAI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cloud-CV/EvalAI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cloud-CV/EvalAI/teams","hooks_url":"https://api.github.com/repos/Cloud-CV/EvalAI/hooks","issue_events_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/events{/number}","events_url":"https://api.github.com/repos/Cloud-CV/EvalAI/events","assignees_url":"https://api.github.com/repos/Cloud-CV/EvalAI/assignees{/user}","branches_url":"https://api.github.com/repos/Cloud-CV/EvalAI/branches{/branch}","tags_url":"https://api.github.com/repos/Cloud-CV/EvalAI/tags","blobs_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cloud-CV/EvalAI/statuses/{sha}","languages_url":"https://api.github.com/repos/Cloud-CV/EvalAI/languages","stargazers_url":"https://api.github.com/repos/Cloud-CV/EvalAI/stargazers","contributors_url":"https://api.github.com/repos/Cloud-CV/EvalAI/contributors","subscribers_url":"https://api.github.com/repos/Cloud-CV/EvalAI/subscribers","subscription_url":"https://api.github.com/repos/Cloud-CV/EvalAI/subscription","commits_url":"https://api.github.com/repos/Cloud-CV/EvalAI/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cloud-CV/EvalAI/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cloud-CV/EvalAI/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cloud-CV/EvalAI/contents/{+path}","compare_url":"https://api.github.com/repos/Cloud-CV/EvalAI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cloud-CV/EvalAI/merges","archive_url":"https://api.github.com/repos/Cloud-CV/EvalAI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cloud-CV/EvalAI/downloads","issues_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues{/number}","pulls_url":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls{/number}","milestones_url":"https://api.github.com/repos/Cloud-CV/EvalAI/milestones{/number}","notifications_url":"https://api.github.com/repos/Cloud-CV/EvalAI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cloud-CV/EvalAI/labels{/name}","releases_url":"https://api.github.com/repos/Cloud-CV/EvalAI/releases{/id}","deployments_url":"https://api.github.com/repos/Cloud-CV/EvalAI/deployments","created_at":"2016-10-21T00:51:45Z","updated_at":"2017-09-21T17:06:19Z","pushed_at":"2017-09-21T22:13:49Z","git_url":"git://github.com/Cloud-CV/EvalAI.git","ssh_url":"git@github.com:Cloud-CV/EvalAI.git","clone_url":"https://github.com/Cloud-CV/EvalAI.git","svn_url":"https://github.com/Cloud-CV/EvalAI","homepage":"https://evalai.cloudcv.org/","size":7736,"stargazers_count":271,"watchers_count":271,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":88,"mirror_url":null,"open_issues_count":59,"forks":88,"open_issues":59,"watchers":271,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/1126"},"html":{"href":"https://github.com/Cloud-CV/EvalAI/pull/1126"},"issue":{"href":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/1126"},"comments":{"href":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/1126/comments"},"review_comments":{"href":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/1126/comments"},"review_comment":{"href":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cloud-CV/EvalAI/pulls/1126/commits"},"statuses":{"href":"https://api.github.com/repos/Cloud-CV/EvalAI/statuses/33fbf2537e941de86753b1fbbc3cd02472694233"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"deshraj"}}