{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/650","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/650/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/650/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/650","id":86699903,"number":650,"title":"add maxInProgress option","user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/cla:%20no","name":"cla: no","color":"e11d21"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/don't%20merge","name":"don't merge","color":"e11d21"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/pubsub","name":"pubsub","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-06-09T19:05:02Z","updated_at":"2015-07-10T15:57:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/650","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/650","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/650.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/650.patch"},"body":"Continuing from #649\r\n\r\nTo Dos:\r\n\r\n- [ ] Tests\r\n- [ ] See what @ryanseys has to say."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/comments/120443597","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/650#issuecomment-120443597","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/650","id":120443597,"user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T15:57:51Z","updated_at":"2015-07-10T15:57:51Z","body":"Sorry for the delays. I hopefully addressed this now with a new method, `skip`. So, from your previous example, this would look like:\r\n\r\n```js\r\nsubscription.on('message', function (message) {\r\n  request.get(message.data.url, function (err) {\r\n    if (err) {\r\n      return message.skip();\r\n    }\r\n\r\n    subscription.ack(message.ackId); \r\n  });\r\n});\r\n```\r\n\r\nBoth `skip` and `ack` will `--` the counter. Please try it out!"}}