{"action":"created","comment":{"url":"https://api.github.com/repos/teamdigitale/io-backend/pulls/comments/290269399","pull_request_review_id":245409831,"id":290269399,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5MDI2OTM5OQ==","diff_hunk":"@@ -54,6 +58,15 @@ newApp(\n       app.emit(\"server:stop\");\n       log.info(\"HTTP server close.\");\n     });\n+\n+    gracefulShutdown(server, {\n+      development: false,\n+      signals: \"SIGINT SIGTERM\",\n+      timeout: 30000,","path":"src/server.ts","position":26,"original_position":26,"commit_id":"3d3a75ce14049f68163ac6d8b295af924c1fd8a4","original_commit_id":"3d3a75ce14049f68163ac6d8b295af924c1fd8a4","user":{"login":"cloudify","id":48206,"node_id":"MDQ6VXNlcjQ4MjA2","avatar_url":"https://avatars2.githubusercontent.com/u/48206?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudify","html_url":"https://github.com/cloudify","followers_url":"https://api.github.com/users/cloudify/followers","following_url":"https://api.github.com/users/cloudify/following{/other_user}","gists_url":"https://api.github.com/users/cloudify/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify/subscriptions","organizations_url":"https://api.github.com/users/cloudify/orgs","repos_url":"https://api.github.com/users/cloudify/repos","events_url":"https://api.github.com/users/cloudify/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify/received_events","type":"User","site_admin":false},"body":"make this configurable via env var","created_at":"2019-06-04T12:26:42Z","updated_at":"2019-06-04T12:27:46Z","html_url":"https://github.com/teamdigitale/io-backend/pull/431#discussion_r290269399","pull_request_url":"https://api.github.com/repos/teamdigitale/io-backend/pulls/431","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/teamdigitale/io-backend/pulls/comments/290269399"},"html":{"href":"https://github.com/teamdigitale/io-backend/pull/431#discussion_r290269399"},"pull_request":{"href":"https://api.github.com/repos/teamdigitale/io-backend/pulls/431"}}},"pull_request":{"url":"https://api.github.com/repos/teamdigitale/io-backend/pulls/431","id":284943638,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg0OTQzNjM4","html_url":"https://github.com/teamdigitale/io-backend/pull/431","diff_url":"https://github.com/teamdigitale/io-backend/pull/431.diff","patch_url":"https://github.com/teamdigitale/io-backend/pull/431.patch","issue_url":"https://api.github.com/repos/teamdigitale/io-backend/issues/431","number":431,"state":"open","locked":false,"title":"[#166152893] - node sigterm sigint management","user":{"login":"chiadav","id":17931148,"node_id":"MDQ6VXNlcjE3OTMxMTQ4","avatar_url":"https://avatars2.githubusercontent.com/u/17931148?v=4","gravatar_id":"","url":"https://api.github.com/users/chiadav","html_url":"https://github.com/chiadav","followers_url":"https://api.github.com/users/chiadav/followers","following_url":"https://api.github.com/users/chiadav/following{/other_user}","gists_url":"https://api.github.com/users/chiadav/gists{/gist_id}","starred_url":"https://api.github.com/users/chiadav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiadav/subscriptions","organizations_url":"https://api.github.com/users/chiadav/orgs","repos_url":"https://api.github.com/users/chiadav/repos","events_url":"https://api.github.com/users/chiadav/events{/privacy}","received_events_url":"https://api.github.com/users/chiadav/received_events","type":"User","site_admin":false},"body":"[#166152893] - Il backend deve terminare in modo controllato alla ricezione di un SIGTERM o SIGINT\r\n\r\n","created_at":"2019-06-04T12:09:37Z","updated_at":"2019-06-04T12:27:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77548cbbc996587299e868fdc1a4f26e243d017a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/teamdigitale/io-backend/pulls/431/commits","review_comments_url":"https://api.github.com/repos/teamdigitale/io-backend/pulls/431/comments","review_comment_url":"https://api.github.com/repos/teamdigitale/io-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamdigitale/io-backend/issues/431/comments","statuses_url":"https://api.github.com/repos/teamdigitale/io-backend/statuses/3d3a75ce14049f68163ac6d8b295af924c1fd8a4","head":{"label":"teamdigitale:166152893-node-sigterm-sigint-management","ref":"166152893-node-sigterm-sigint-management","sha":"3d3a75ce14049f68163ac6d8b295af924c1fd8a4","user":{"login":"teamdigitale","id":25081492,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDgxNDky","avatar_url":"https://avatars0.githubusercontent.com/u/25081492?v=4","gravatar_id":"","url":"https://api.github.com/users/teamdigitale","html_url":"https://github.com/teamdigitale","followers_url":"https://api.github.com/users/teamdigitale/followers","following_url":"https://api.github.com/users/teamdigitale/following{/other_user}","gists_url":"https://api.github.com/users/teamdigitale/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdigitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdigitale/subscriptions","organizations_url":"https://api.github.com/users/teamdigitale/orgs","repos_url":"https://api.github.com/users/teamdigitale/repos","events_url":"https://api.github.com/users/teamdigitale/events{/privacy}","received_events_url":"https://api.github.com/users/teamdigitale/received_events","type":"Organization","site_admin":false},"repo":{"id":88541895,"node_id":"MDEwOlJlcG9zaXRvcnk4ODU0MTg5NQ==","name":"io-backend","full_name":"teamdigitale/io-backend","private":false,"owner":{"login":"teamdigitale","id":25081492,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDgxNDky","avatar_url":"https://avatars0.githubusercontent.com/u/25081492?v=4","gravatar_id":"","url":"https://api.github.com/users/teamdigitale","html_url":"https://github.com/teamdigitale","followers_url":"https://api.github.com/users/teamdigitale/followers","following_url":"https://api.github.com/users/teamdigitale/following{/other_user}","gists_url":"https://api.github.com/users/teamdigitale/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdigitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdigitale/subscriptions","organizations_url":"https://api.github.com/users/teamdigitale/orgs","repos_url":"https://api.github.com/users/teamdigitale/repos","events_url":"https://api.github.com/users/teamdigitale/events{/privacy}","received_events_url":"https://api.github.com/users/teamdigitale/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/teamdigitale/io-backend","description":"App IO (backend)","fork":false,"url":"https://api.github.com/repos/teamdigitale/io-backend","forks_url":"https://api.github.com/repos/teamdigitale/io-backend/forks","keys_url":"https://api.github.com/repos/teamdigitale/io-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamdigitale/io-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamdigitale/io-backend/teams","hooks_url":"https://api.github.com/repos/teamdigitale/io-backend/hooks","issue_events_url":"https://api.github.com/repos/teamdigitale/io-backend/issues/events{/number}","events_url":"https://api.github.com/repos/teamdigitale/io-backend/events","assignees_url":"https://api.github.com/repos/teamdigitale/io-backend/assignees{/user}","branches_url":"https://api.github.com/repos/teamdigitale/io-backend/branches{/branch}","tags_url":"https://api.github.com/repos/teamdigitale/io-backend/tags","blobs_url":"https://api.github.com/repos/teamdigitale/io-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamdigitale/io-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamdigitale/io-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamdigitale/io-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamdigitale/io-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/teamdigitale/io-backend/languages","stargazers_url":"https://api.github.com/repos/teamdigitale/io-backend/stargazers","contributors_url":"https://api.github.com/repos/teamdigitale/io-backend/contributors","subscribers_url":"https://api.github.com/repos/teamdigitale/io-backend/subscribers","subscription_url":"https://api.github.com/repos/teamdigitale/io-backend/subscription","commits_url":"https://api.github.com/repos/teamdigitale/io-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamdigitale/io-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamdigitale/io-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamdigitale/io-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamdigitale/io-backend/contents/{+path}","compare_url":"https://api.github.com/repos/teamdigitale/io-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamdigitale/io-backend/merges","archive_url":"https://api.github.com/repos/teamdigitale/io-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamdigitale/io-backend/downloads","issues_url":"https://api.github.com/repos/teamdigitale/io-backend/issues{/number}","pulls_url":"https://api.github.com/repos/teamdigitale/io-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/teamdigitale/io-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/teamdigitale/io-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamdigitale/io-backend/labels{/name}","releases_url":"https://api.github.com/repos/teamdigitale/io-backend/releases{/id}","deployments_url":"https://api.github.com/repos/teamdigitale/io-backend/deployments","created_at":"2017-04-17T19:15:53Z","updated_at":"2019-05-31T14:54:20Z","pushed_at":"2019-06-04T12:09:37Z","git_url":"git://github.com/teamdigitale/io-backend.git","ssh_url":"git@github.com:teamdigitale/io-backend.git","clone_url":"https://github.com/teamdigitale/io-backend.git","svn_url":"https://github.com/teamdigitale/io-backend","homepage":"https://io.italia.it","size":2153,"stargazers_count":37,"watchers_count":37,"language":"TypeScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":19,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":5,"open_issues":19,"watchers":37,"default_branch":"master"}},"base":{"label":"teamdigitale:master","ref":"master","sha":"71992d6cdf83f22ddc42979fe1c1cdd9ef48cd19","user":{"login":"teamdigitale","id":25081492,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDgxNDky","avatar_url":"https://avatars0.githubusercontent.com/u/25081492?v=4","gravatar_id":"","url":"https://api.github.com/users/teamdigitale","html_url":"https://github.com/teamdigitale","followers_url":"https://api.github.com/users/teamdigitale/followers","following_url":"https://api.github.com/users/teamdigitale/following{/other_user}","gists_url":"https://api.github.com/users/teamdigitale/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdigitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdigitale/subscriptions","organizations_url":"https://api.github.com/users/teamdigitale/orgs","repos_url":"https://api.github.com/users/teamdigitale/repos","events_url":"https://api.github.com/users/teamdigitale/events{/privacy}","received_events_url":"https://api.github.com/users/teamdigitale/received_events","type":"Organization","site_admin":false},"repo":{"id":88541895,"node_id":"MDEwOlJlcG9zaXRvcnk4ODU0MTg5NQ==","name":"io-backend","full_name":"teamdigitale/io-backend","private":false,"owner":{"login":"teamdigitale","id":25081492,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDgxNDky","avatar_url":"https://avatars0.githubusercontent.com/u/25081492?v=4","gravatar_id":"","url":"https://api.github.com/users/teamdigitale","html_url":"https://github.com/teamdigitale","followers_url":"https://api.github.com/users/teamdigitale/followers","following_url":"https://api.github.com/users/teamdigitale/following{/other_user}","gists_url":"https://api.github.com/users/teamdigitale/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdigitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdigitale/subscriptions","organizations_url":"https://api.github.com/users/teamdigitale/orgs","repos_url":"https://api.github.com/users/teamdigitale/repos","events_url":"https://api.github.com/users/teamdigitale/events{/privacy}","received_events_url":"https://api.github.com/users/teamdigitale/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/teamdigitale/io-backend","description":"App IO (backend)","fork":false,"url":"https://api.github.com/repos/teamdigitale/io-backend","forks_url":"https://api.github.com/repos/teamdigitale/io-backend/forks","keys_url":"https://api.github.com/repos/teamdigitale/io-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamdigitale/io-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamdigitale/io-backend/teams","hooks_url":"https://api.github.com/repos/teamdigitale/io-backend/hooks","issue_events_url":"https://api.github.com/repos/teamdigitale/io-backend/issues/events{/number}","events_url":"https://api.github.com/repos/teamdigitale/io-backend/events","assignees_url":"https://api.github.com/repos/teamdigitale/io-backend/assignees{/user}","branches_url":"https://api.github.com/repos/teamdigitale/io-backend/branches{/branch}","tags_url":"https://api.github.com/repos/teamdigitale/io-backend/tags","blobs_url":"https://api.github.com/repos/teamdigitale/io-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamdigitale/io-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamdigitale/io-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamdigitale/io-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamdigitale/io-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/teamdigitale/io-backend/languages","stargazers_url":"https://api.github.com/repos/teamdigitale/io-backend/stargazers","contributors_url":"https://api.github.com/repos/teamdigitale/io-backend/contributors","subscribers_url":"https://api.github.com/repos/teamdigitale/io-backend/subscribers","subscription_url":"https://api.github.com/repos/teamdigitale/io-backend/subscription","commits_url":"https://api.github.com/repos/teamdigitale/io-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamdigitale/io-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamdigitale/io-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamdigitale/io-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamdigitale/io-backend/contents/{+path}","compare_url":"https://api.github.com/repos/teamdigitale/io-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamdigitale/io-backend/merges","archive_url":"https://api.github.com/repos/teamdigitale/io-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamdigitale/io-backend/downloads","issues_url":"https://api.github.com/repos/teamdigitale/io-backend/issues{/number}","pulls_url":"https://api.github.com/repos/teamdigitale/io-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/teamdigitale/io-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/teamdigitale/io-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamdigitale/io-backend/labels{/name}","releases_url":"https://api.github.com/repos/teamdigitale/io-backend/releases{/id}","deployments_url":"https://api.github.com/repos/teamdigitale/io-backend/deployments","created_at":"2017-04-17T19:15:53Z","updated_at":"2019-05-31T14:54:20Z","pushed_at":"2019-06-04T12:09:37Z","git_url":"git://github.com/teamdigitale/io-backend.git","ssh_url":"git@github.com:teamdigitale/io-backend.git","clone_url":"https://github.com/teamdigitale/io-backend.git","svn_url":"https://github.com/teamdigitale/io-backend","homepage":"https://io.italia.it","size":2153,"stargazers_count":37,"watchers_count":37,"language":"TypeScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":19,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":5,"open_issues":19,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teamdigitale/io-backend/pulls/431"},"html":{"href":"https://github.com/teamdigitale/io-backend/pull/431"},"issue":{"href":"https://api.github.com/repos/teamdigitale/io-backend/issues/431"},"comments":{"href":"https://api.github.com/repos/teamdigitale/io-backend/issues/431/comments"},"review_comments":{"href":"https://api.github.com/repos/teamdigitale/io-backend/pulls/431/comments"},"review_comment":{"href":"https://api.github.com/repos/teamdigitale/io-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamdigitale/io-backend/pulls/431/commits"},"statuses":{"href":"https://api.github.com/repos/teamdigitale/io-backend/statuses/3d3a75ce14049f68163ac6d8b295af924c1fd8a4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"cloudify"}}