{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3532","repository_url":"https://api.github.com/repos/Azure/azure-functions-host","labels_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3532/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3532/comments","events_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3532/events","html_url":"https://github.com/Azure/azure-functions-host/issues/3532","id":364589553,"node_id":"MDU6SXNzdWUzNjQ1ODk1NTM=","number":3532,"title":"Queue settings are not respected with function app version 2.0.11961-alpha on an App Service plan","user":{"login":"scott-lin","id":31644762,"node_id":"MDQ6VXNlcjMxNjQ0NzYy","avatar_url":"https://avatars2.githubusercontent.com/u/31644762?v=4","gravatar_id":"","url":"https://api.github.com/users/scott-lin","html_url":"https://github.com/scott-lin","followers_url":"https://api.github.com/users/scott-lin/followers","following_url":"https://api.github.com/users/scott-lin/following{/other_user}","gists_url":"https://api.github.com/users/scott-lin/gists{/gist_id}","starred_url":"https://api.github.com/users/scott-lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott-lin/subscriptions","organizations_url":"https://api.github.com/users/scott-lin/orgs","repos_url":"https://api.github.com/users/scott-lin/repos","events_url":"https://api.github.com/users/scott-lin/events{/privacy}","received_events_url":"https://api.github.com/users/scott-lin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-27T17:59:02Z","updated_at":"2018-11-02T18:30:11Z","closed_at":"2018-11-02T18:30:11Z","author_association":"NONE","body":"**I'm observing two issues:**\r\n\r\n1. My function is running on an App Service plan that I have restricted to 1 VM instance. I have configured my host.json queue settings with `\"batchSize\": 1` and `\"newBatchThreshold\": 0`. I am observing more concurrency than expected (8+ items at a time). I expected to see one item at a time processed from my queue per instance given these settings.\r\n\r\n2. In addition, messages are being retried more than the `\"maxDequeueCount\": 5` setting I have configured. I expect messages to be sent to the poison queue when retried beyond this setting, but they are not.\r\n\r\n#### Investigative information\r\n\r\n- Timestamp: 10:48:34.093 AM PST\r\n- Function App version: 2.0.11961-alpha\r\n- Function App name: devautorest-functions\r\n- Function name: autorestprocessor\r\n- Invocation ID: 43ee596e-033a-40a6-9f75-39d3de49a659 (there are many more invocations at the same timestamp)\r\n- Region: west us 2\r\n\r\n#### Repro steps\r\n\r\n1. Set function version to the above.\r\n2. Configure host.json to:\r\n```\r\n{\r\n  \"version\": \"2.0\",\r\n  \"functionTimeout\": \"00:10:00\",\r\n  \"extensions\": {\r\n        \"queues\": {\r\n            \"maxDequeueCount\": 5,\r\n            \"batchSize\": 1,\r\n            \"newBatchThreshold\": 0\r\n        }\r\n    }\r\n}\r\n```\r\n3. Restart the function\r\n4. Clear all messages in the queue\r\n5. Pump a bunch of messages into the queue to trigger processing\r\n6. Many messages from the queue are processed concurrently\r\n\r\n#### Expected behavior\r\nAt step six, I expect one item to be processed concurrently instead of multiple.\r\n\r\n#### Actual behavior\r\nAt step six, multiple items are processed concurrently.\r\n\r\n#### Related information\r\n\r\nJavascript\r\nBindings used\r\n```\r\n{\r\n    \"bindings\": [\r\n        {\r\n            \"name\": \"clientLibraryId\",\r\n            \"type\": \"queueTrigger\",\r\n            \"direction\": \"in\",\r\n            \"queueName\": \"clientlibraryrequest\",\r\n            \"connection\": \"STORAGEACCOUNT_CONNECTIONSTRING\"\r\n        }\r\n    ],\r\n    \"disabled\": false\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/comments/435469247","html_url":"https://github.com/Azure/azure-functions-host/issues/3532#issuecomment-435469247","issue_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3532","id":435469247,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTQ2OTI0Nw==","user":{"login":"scott-lin","id":31644762,"node_id":"MDQ6VXNlcjMxNjQ0NzYy","avatar_url":"https://avatars2.githubusercontent.com/u/31644762?v=4","gravatar_id":"","url":"https://api.github.com/users/scott-lin","html_url":"https://github.com/scott-lin","followers_url":"https://api.github.com/users/scott-lin/followers","following_url":"https://api.github.com/users/scott-lin/following{/other_user}","gists_url":"https://api.github.com/users/scott-lin/gists{/gist_id}","starred_url":"https://api.github.com/users/scott-lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott-lin/subscriptions","organizations_url":"https://api.github.com/users/scott-lin/orgs","repos_url":"https://api.github.com/users/scott-lin/repos","events_url":"https://api.github.com/users/scott-lin/events{/privacy}","received_events_url":"https://api.github.com/users/scott-lin/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T18:30:11Z","updated_at":"2018-11-02T18:30:11Z","author_association":"NONE","body":"Confirmed @paulbatum's suggestion worked, so closing this issue thread. However, I did find another bug linked in the issue above."}}
{"actor":{"display_login":"scott-lin"}}