Skip to content

Commit

Permalink
Break AwaitMessageTrigger execution when finding a message with the d…
Browse files Browse the repository at this point in the history
…esired format (#31803)

Signed-off-by: Hussein Awala <hussein@awala.fr>
Co-authored-by: eladkal <45845474+eladkal@users.noreply.github.com>
  • Loading branch information
hussein-awala and eladkal committed Jun 30, 2023
1 parent ead2530 commit 1b599c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/providers/apache/kafka/triggers/await_message.py
Expand Up @@ -113,6 +113,7 @@ async def run(self):
if rv:
await async_commit(asynchronous=False)
yield TriggerEvent(rv)
break
else:
await async_commit(asynchronous=False)
await asyncio.sleep(self.poll_interval)

0 comments on commit 1b599c9

Please sign in to comment.