{"action":"opened","number":2524,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/2524","id":76355363,"html_url":"https://github.com/ansible/ansible-modules-extras/pull/2524","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/2524.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/2524.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2524","number":2524,"state":"open","locked":false,"title":"Add timeout feature to ecs_task module","user":{"login":"jmenga","id":16098232,"avatar_url":"https://avatars.githubusercontent.com/u/16098232?v=3","gravatar_id":"","url":"https://api.github.com/users/jmenga","html_url":"https://github.com/jmenga","followers_url":"https://api.github.com/users/jmenga/followers","following_url":"https://api.github.com/users/jmenga/following{/other_user}","gists_url":"https://api.github.com/users/jmenga/gists{/gist_id}","starred_url":"https://api.github.com/users/jmenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmenga/subscriptions","organizations_url":"https://api.github.com/users/jmenga/orgs","repos_url":"https://api.github.com/users/jmenga/repos","events_url":"https://api.github.com/users/jmenga/events{/privacy}","received_events_url":"https://api.github.com/users/jmenga/received_events","type":"User","site_admin":false},"body":"##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Feature Pull Request\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/module/task -->\r\necs_task\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.0.0\r\n```\r\n\r\n##### SUMMARY\r\n<!--- Describe the change, including rationale and design decisions -->\r\nEnhances existing `ecs_task` module as follows:\r\n- Adds ability to specify a `timeout` variable, which causes the module to wait and poll the invoked task until task completion\r\n- If a timeout is specified and the task completes with a zero (success) exist code, the module will return success\r\n- If a timeout is specified and the task fails (i.e. ECS task failure), the module will return a failure\r\n- If a timeout is specified and the task completes with a non-zero exit code, the module will return a failure\r\n- The `task_definition` variable can now accept a task definition ARN as input\r\n\r\nThe default value of `timeout` is 0, which causes the module to complete immediately without waiting for the task to complete.\r\n\r\n<!---\r\nIf you are fixing an existing issue, please include \"Fixes #nnnn\" in your commit\r\nmessage and your description; but you should still explain what the change does.\r\n-->\r\n\r\n<!--- Paste verbatim command output below, e.g. before and after your change -->\r\n```\r\n# Simple example of run task and wait 300 seconds for task to complete\r\n- name: Run task with timeout\r\n  ecs_task:\r\n      operation: run\r\n      cluster: console-sample-app-static-cluster\r\n      task_definition: console-sample-app-static-taskdef\r\n      timeout: 300\r\n```\r\n","created_at":"2016-07-05T22:48:39Z","updated_at":"2016-07-05T22:48:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/2524/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/2524/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2524/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/356b2ee78b027a09752c6b2db00c6f0dcfc575c7","head":{"label":"jmenga:ecs_task_timeout","ref":"ecs_task_timeout","sha":"356b2ee78b027a09752c6b2db00c6f0dcfc575c7","user":{"login":"jmenga","id":16098232,"avatar_url":"https://avatars.githubusercontent.com/u/16098232?v=3","gravatar_id":"","url":"https://api.github.com/users/jmenga","html_url":"https://github.com/jmenga","followers_url":"https://api.github.com/users/jmenga/followers","following_url":"https://api.github.com/users/jmenga/following{/other_user}","gists_url":"https://api.github.com/users/jmenga/gists{/gist_id}","starred_url":"https://api.github.com/users/jmenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmenga/subscriptions","organizations_url":"https://api.github.com/users/jmenga/orgs","repos_url":"https://api.github.com/users/jmenga/repos","events_url":"https://api.github.com/users/jmenga/events{/privacy}","received_events_url":"https://api.github.com/users/jmenga/received_events","type":"User","site_admin":false},"repo":{"id":53112256,"name":"ansible-modules-extras","full_name":"jmenga/ansible-modules-extras","owner":{"login":"jmenga","id":16098232,"avatar_url":"https://avatars.githubusercontent.com/u/16098232?v=3","gravatar_id":"","url":"https://api.github.com/users/jmenga","html_url":"https://github.com/jmenga","followers_url":"https://api.github.com/users/jmenga/followers","following_url":"https://api.github.com/users/jmenga/following{/other_user}","gists_url":"https://api.github.com/users/jmenga/gists{/gist_id}","starred_url":"https://api.github.com/users/jmenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmenga/subscriptions","organizations_url":"https://api.github.com/users/jmenga/orgs","repos_url":"https://api.github.com/users/jmenga/repos","events_url":"https://api.github.com/users/jmenga/events{/privacy}","received_events_url":"https://api.github.com/users/jmenga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmenga/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/jmenga/ansible-modules-extras","forks_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/releases{/id}","deployments_url":"https://api.github.com/repos/jmenga/ansible-modules-extras/deployments","created_at":"2016-03-04T06:14:23Z","updated_at":"2016-03-04T06:14:29Z","pushed_at":"2016-07-05T22:41:14Z","git_url":"git://github.com/jmenga/ansible-modules-extras.git","ssh_url":"git@github.com:jmenga/ansible-modules-extras.git","clone_url":"https://github.com/jmenga/ansible-modules-extras.git","svn_url":"https://github.com/jmenga/ansible-modules-extras","homepage":"","size":7281,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"e0b3e2f7905b9b0951c1441148c33a03a9e40f78","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":24474138,"name":"ansible-modules-extras","full_name":"ansible/ansible-modules-extras","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-extras","forks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-extras/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/deployments","created_at":"2014-09-25T20:28:42Z","updated_at":"2016-07-05T18:10:35Z","pushed_at":"2016-07-05T22:48:39Z","git_url":"git://github.com/ansible/ansible-modules-extras.git","ssh_url":"git@github.com:ansible/ansible-modules-extras.git","clone_url":"https://github.com/ansible/ansible-modules-extras.git","svn_url":"https://github.com/ansible/ansible-modules-extras","homepage":"","size":45004,"stargazers_count":630,"watchers_count":630,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1307,"mirror_url":null,"open_issues_count":643,"forks":1307,"open_issues":643,"watchers":630,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/2524"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/2524"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2524"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2524/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/2524/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/2524/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/356b2ee78b027a09752c6b2db00c6f0dcfc575c7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":96,"deletions":55,"changed_files":1}}
{"actor":{"display_login":"jmenga"}}