title: Azure Logic App - Service Bus Trigger only firing on polling recurrence
body: <p>I have an Azure Service Bus Namespace, containing 8 topics, each with at least one subscription.</p>
  <p>There are generally two Logic Apps,the first extracting data from our database every half hour (at 15 and 45 past the hour) and placing it onto the Service Bus topic of choice, and a second being triggered using the &quot;When a message is recieved in a topic subscription (auto-complete)&quot; trigger connector - with default concurrency set (25). An example is shown below</p>
  <pre><code>&quot;When_a_message_is_received_in_a_topic_subscription_(auto-complete)&quot;: {
              &quot;conditions&quot;: [],
              &quot;inputs&quot;: {
                  &quot;host&quot;: {
                      &quot;connection&quot;: {
                          &quot;name&quot;: &quot;@parameters('$connections')['servicebus']['connectionId']&quot;
                      }
                  },
                  &quot;method&quot;: &quot;get&quot;,
                  &quot;path&quot;: &quot;/@{encodeURIComponent(encodeURIComponent('exampletopic'))}/subscriptions/@{encodeURIComponent('examplesubscription')}/messages/head&quot;,
                  &quot;queries&quot;: {
                      &quot;subscriptionType&quot;: &quot;Main&quot;
                  }
              },
              &quot;recurrence&quot;: {
                  &quot;frequency&quot;: &quot;Minute&quot;,
                  &quot;interval&quot;: 30,
                  &quot;startTime&quot;: &quot;2021-01-27T00:00:00.000Z&quot;,
                  &quot;timeZone&quot;: &quot;UTC&quot;
              },
              &quot;runtimeConfiguration&quot;: {
                  &quot;concurrency&quot;: {
                      &quot;runs&quot;: 25
                  }
              },
              &quot;type&quot;: &quot;ApiConnection&quot;
          }
  </code></pre>
  <p>As mentioned in the title, the issue I have is that the trigger is only ever firing on the 30 minute polling recurrence, as can be seen below, and not when the messages go into the servicebus (unlike the common data service trigger we also use which fires on create/update/delete instantly). Is this by design or something I have setup wrong?</p>
  <p><a href="https://i.stack.imgur.com/mUFOP.png" rel="nofollow noreferrer">Logic App Runs - Service Bus Trigger</a></p>
  <p>Another issue is that the concurrency setting is literally only letting 25 through, and keeping the rest in the Service Bus until the next run, so we are having to wait long periods between processing. I thought the point of the concurrency setting was to let the logic app runs wait in a queue, and then when one finishes another one could start. As you can see in the image I pasted above, this is just not happening. The 3.45 run extracted 43 records from the database. Only 25 where triggered at 4.00, with 17 left on the Service Bus until the next run at 4.30. This has the potential to be a massive bottle neck if we send huge numbers through.</p>
  <p>The Service Bus settings are also below, if they are of interest to anyone:</p>
  <pre><code>Topic:
  &quot;properties&quot;: {
              &quot;defaultMessageTimeToLive&quot;: &quot;P5D&quot;,
              &quot;maxSizeInMegabytes&quot;: 1024,
              &quot;requiresDuplicateDetection&quot;: true,
              &quot;duplicateDetectionHistoryTimeWindow&quot;: &quot;PT1H&quot;,
              &quot;enableBatchedOperations&quot;: true,
              &quot;status&quot;: &quot;Active&quot;,
              &quot;supportOrdering&quot;: true,
              &quot;autoDeleteOnIdle&quot;: &quot;P10675199DT2H48M5.4775807S&quot;,
              &quot;enablePartitioning&quot;: false,
              &quot;enableExpress&quot;: false
          }
  Subscription:
  &quot;properties&quot;: {
              &quot;lockDuration&quot;: &quot;PT5M&quot;,
              &quot;requiresSession&quot;: false,
              &quot;defaultMessageTimeToLive&quot;: &quot;P5D&quot;,
              &quot;deadLetteringOnMessageExpiration&quot;: true,
              &quot;deadLetteringOnFilterEvaluationExceptions&quot;: true,
              &quot;maxDeliveryCount&quot;: 1,
              &quot;status&quot;: &quot;Active&quot;,
              &quot;enableBatchedOperations&quot;: true,
              &quot;autoDeleteOnIdle&quot;: &quot;P5D&quot;
          }
  </code></pre>
  <p>Thanks in advance</p>