{"action":"created","comment":{"url":"https://api.github.com/repos/googleapis/artman/pulls/comments/113505007","pull_request_review_id":34898023,"id":113505007,"diff_hunk":"@@ -0,0 +1,147 @@\n+# Copyright 2016 Google Inc. All Rights Reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+# http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+'''Artman conductor to claim and execute remote tasks.'''\n+\n+import base64\n+import io\n+import os\n+import subprocess\n+import time\n+import uuid\n+\n+from oauth2client.client import GoogleCredentials\n+from googleapiclient.discovery import build_from_document\n+\n+from artman.cli import main\n+from artman.utils.logger import logger\n+\n+","path":"artman/conductors/cloudtasks_conductor.py","position":30,"original_position":30,"commit_id":"3ef60410813b147628b5e99ccde3667da748ce5b","original_commit_id":"3ef60410813b147628b5e99ccde3667da748ce5b","user":{"login":"lukesneeringer","id":4346,"avatar_url":"https://avatars3.githubusercontent.com/u/4346?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesneeringer","html_url":"https://github.com/lukesneeringer","followers_url":"https://api.github.com/users/lukesneeringer/followers","following_url":"https://api.github.com/users/lukesneeringer/following{/other_user}","gists_url":"https://api.github.com/users/lukesneeringer/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesneeringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesneeringer/subscriptions","organizations_url":"https://api.github.com/users/lukesneeringer/orgs","repos_url":"https://api.github.com/users/lukesneeringer/repos","events_url":"https://api.github.com/users/lukesneeringer/events{/privacy}","received_events_url":"https://api.github.com/users/lukesneeringer/received_events","type":"User","site_admin":false},"body":"At a high level, it makes me a bit squeamish that we are implementing our own task runner. Why not use an existing one (e.g. [celery](http://www.celeryproject.org/))?","created_at":"2017-04-26T16:48:17Z","updated_at":"2017-04-26T17:03:22Z","html_url":"https://github.com/googleapis/artman/pull/170#discussion_r113505007","pull_request_url":"https://api.github.com/repos/googleapis/artman/pulls/170","_links":{"self":{"href":"https://api.github.com/repos/googleapis/artman/pulls/comments/113505007"},"html":{"href":"https://github.com/googleapis/artman/pull/170#discussion_r113505007"},"pull_request":{"href":"https://api.github.com/repos/googleapis/artman/pulls/170"}}},"pull_request":{"url":"https://api.github.com/repos/googleapis/artman/pulls/170","id":117589162,"html_url":"https://github.com/googleapis/artman/pull/170","diff_url":"https://github.com/googleapis/artman/pull/170.diff","patch_url":"https://github.com/googleapis/artman/pull/170.patch","issue_url":"https://api.github.com/repos/googleapis/artman/issues/170","number":170,"state":"open","locked":false,"title":"Reimplement task conductor","user":{"login":"ethanbao","id":11670828,"avatar_url":"https://avatars3.githubusercontent.com/u/11670828?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanbao","html_url":"https://github.com/ethanbao","followers_url":"https://api.github.com/users/ethanbao/followers","following_url":"https://api.github.com/users/ethanbao/following{/other_user}","gists_url":"https://api.github.com/users/ethanbao/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanbao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanbao/subscriptions","organizations_url":"https://api.github.com/users/ethanbao/orgs","repos_url":"https://api.github.com/users/ethanbao/repos","events_url":"https://api.github.com/users/ethanbao/events{/privacy}","received_events_url":"https://api.github.com/users/ethanbao/received_events","type":"User","site_admin":false},"body":"The new conductor now fetches artman tasks from GoogleCloud Tasks API. The old gapic_conductor is deleted.","created_at":"2017-04-25T21:50:57Z","updated_at":"2017-04-26T17:03:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7bd3e9ddf27f3a94a5abb414e01bbe8497a1533d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/artman/pulls/170/commits","review_comments_url":"https://api.github.com/repos/googleapis/artman/pulls/170/comments","review_comment_url":"https://api.github.com/repos/googleapis/artman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/artman/issues/170/comments","statuses_url":"https://api.github.com/repos/googleapis/artman/statuses/3ef60410813b147628b5e99ccde3667da748ce5b","head":{"label":"ethanbao:remote-taskqueue","ref":"remote-taskqueue","sha":"3ef60410813b147628b5e99ccde3667da748ce5b","user":{"login":"ethanbao","id":11670828,"avatar_url":"https://avatars3.githubusercontent.com/u/11670828?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanbao","html_url":"https://github.com/ethanbao","followers_url":"https://api.github.com/users/ethanbao/followers","following_url":"https://api.github.com/users/ethanbao/following{/other_user}","gists_url":"https://api.github.com/users/ethanbao/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanbao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanbao/subscriptions","organizations_url":"https://api.github.com/users/ethanbao/orgs","repos_url":"https://api.github.com/users/ethanbao/repos","events_url":"https://api.github.com/users/ethanbao/events{/privacy}","received_events_url":"https://api.github.com/users/ethanbao/received_events","type":"User","site_admin":false},"repo":{"id":57229230,"name":"artman","full_name":"ethanbao/artman","owner":{"login":"ethanbao","id":11670828,"avatar_url":"https://avatars3.githubusercontent.com/u/11670828?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanbao","html_url":"https://github.com/ethanbao","followers_url":"https://api.github.com/users/ethanbao/followers","following_url":"https://api.github.com/users/ethanbao/following{/other_user}","gists_url":"https://api.github.com/users/ethanbao/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanbao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanbao/subscriptions","organizations_url":"https://api.github.com/users/ethanbao/orgs","repos_url":"https://api.github.com/users/ethanbao/repos","events_url":"https://api.github.com/users/ethanbao/events{/privacy}","received_events_url":"https://api.github.com/users/ethanbao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ethanbao/artman","description":"Google API Artifact manager","fork":true,"url":"https://api.github.com/repos/ethanbao/artman","forks_url":"https://api.github.com/repos/ethanbao/artman/forks","keys_url":"https://api.github.com/repos/ethanbao/artman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethanbao/artman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethanbao/artman/teams","hooks_url":"https://api.github.com/repos/ethanbao/artman/hooks","issue_events_url":"https://api.github.com/repos/ethanbao/artman/issues/events{/number}","events_url":"https://api.github.com/repos/ethanbao/artman/events","assignees_url":"https://api.github.com/repos/ethanbao/artman/assignees{/user}","branches_url":"https://api.github.com/repos/ethanbao/artman/branches{/branch}","tags_url":"https://api.github.com/repos/ethanbao/artman/tags","blobs_url":"https://api.github.com/repos/ethanbao/artman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethanbao/artman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethanbao/artman/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethanbao/artman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethanbao/artman/statuses/{sha}","languages_url":"https://api.github.com/repos/ethanbao/artman/languages","stargazers_url":"https://api.github.com/repos/ethanbao/artman/stargazers","contributors_url":"https://api.github.com/repos/ethanbao/artman/contributors","subscribers_url":"https://api.github.com/repos/ethanbao/artman/subscribers","subscription_url":"https://api.github.com/repos/ethanbao/artman/subscription","commits_url":"https://api.github.com/repos/ethanbao/artman/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethanbao/artman/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethanbao/artman/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethanbao/artman/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethanbao/artman/contents/{+path}","compare_url":"https://api.github.com/repos/ethanbao/artman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethanbao/artman/merges","archive_url":"https://api.github.com/repos/ethanbao/artman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethanbao/artman/downloads","issues_url":"https://api.github.com/repos/ethanbao/artman/issues{/number}","pulls_url":"https://api.github.com/repos/ethanbao/artman/pulls{/number}","milestones_url":"https://api.github.com/repos/ethanbao/artman/milestones{/number}","notifications_url":"https://api.github.com/repos/ethanbao/artman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethanbao/artman/labels{/name}","releases_url":"https://api.github.com/repos/ethanbao/artman/releases{/id}","deployments_url":"https://api.github.com/repos/ethanbao/artman/deployments","created_at":"2016-04-27T16:35:30Z","updated_at":"2016-04-27T16:35:31Z","pushed_at":"2017-04-26T16:40:39Z","git_url":"git://github.com/ethanbao/artman.git","ssh_url":"git@github.com:ethanbao/artman.git","clone_url":"https://github.com/ethanbao/artman.git","svn_url":"https://github.com/ethanbao/artman","homepage":"","size":525,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"googleapis:master","ref":"master","sha":"fc75ae196d4db6560541de0858dd58095c8c3805","user":{"login":"googleapis","id":16785467,"avatar_url":"https://avatars0.githubusercontent.com/u/16785467?v=3","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"repo":{"id":55101236,"name":"artman","full_name":"googleapis/artman","owner":{"login":"googleapis","id":16785467,"avatar_url":"https://avatars0.githubusercontent.com/u/16785467?v=3","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/googleapis/artman","description":"Google API Artifact manager","fork":false,"url":"https://api.github.com/repos/googleapis/artman","forks_url":"https://api.github.com/repos/googleapis/artman/forks","keys_url":"https://api.github.com/repos/googleapis/artman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/artman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/artman/teams","hooks_url":"https://api.github.com/repos/googleapis/artman/hooks","issue_events_url":"https://api.github.com/repos/googleapis/artman/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/artman/events","assignees_url":"https://api.github.com/repos/googleapis/artman/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/artman/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/artman/tags","blobs_url":"https://api.github.com/repos/googleapis/artman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/artman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/artman/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/artman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/artman/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/artman/languages","stargazers_url":"https://api.github.com/repos/googleapis/artman/stargazers","contributors_url":"https://api.github.com/repos/googleapis/artman/contributors","subscribers_url":"https://api.github.com/repos/googleapis/artman/subscribers","subscription_url":"https://api.github.com/repos/googleapis/artman/subscription","commits_url":"https://api.github.com/repos/googleapis/artman/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/artman/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/artman/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/artman/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/artman/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/artman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/artman/merges","archive_url":"https://api.github.com/repos/googleapis/artman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/artman/downloads","issues_url":"https://api.github.com/repos/googleapis/artman/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/artman/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/artman/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/artman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/artman/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/artman/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/artman/deployments","created_at":"2016-03-30T22:09:32Z","updated_at":"2017-04-05T12:51:09Z","pushed_at":"2017-04-26T16:40:40Z","git_url":"git://github.com/googleapis/artman.git","ssh_url":"git@github.com:googleapis/artman.git","clone_url":"https://github.com/googleapis/artman.git","svn_url":"https://github.com/googleapis/artman","homepage":"","size":496,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":25,"forks":21,"open_issues":25,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/artman/pulls/170"},"html":{"href":"https://github.com/googleapis/artman/pull/170"},"issue":{"href":"https://api.github.com/repos/googleapis/artman/issues/170"},"comments":{"href":"https://api.github.com/repos/googleapis/artman/issues/170/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/artman/pulls/170/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/artman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/artman/pulls/170/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/artman/statuses/3ef60410813b147628b5e99ccde3667da748ce5b"}}}}
{"actor":{"display_login":"lukesneeringer"}}