如何使用Azure EventHub触发函数返回到检查点? [英] How to go back to a checkpoint with Azure EventHub Trigger to Functions?

查看:112
本文介绍了如何使用Azure EventHub触发函数返回到检查点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Azure Functions应用实现的EventHub触发器.我的业务逻辑实现在该功能上是错误的,因此必须对其进行纠正.我已经更正了我在Functions App上的实现,如何将检查点更改为该Azure Function追溯到24小时并使流数据可供Functions App使用?

I have an EventHub trigger implemented with Azure Functions App. My business logic implementation was wrong in that function and had to correct it. I have corrected my implementation on Functions App, how would I change the checkpoint to that Azure Function to go back 24 hours and make the stream data available to Functions App?

推荐答案

当我需要从头开始处理集线器中的事件时,我去了Blob Storage-> azure-webjobs-hosts容器,并删除了带有yournamespace.servicebus.windows.net/yourhub/$Default/X.这些blob存储当前的检查点,因此,如果您重新启动Function App,它将从第一个事件开始处理.

When I needed to start processing of events in a Hub from scratch, I went to Blob Storage -> azure-webjobs-hosts container and deleted the blobs with names like yournamespace.servicebus.windows.net/yourhub/$Default/X. Those blobs store the current checkpoints, so if you restart the Function App, it will start processing from the first event.

我知道它很hacky,但是适用于这种基本情况.也许有人会建议一种更好的方法.

I know it's hacky, but works for such basic scenario. Maybe somebody will suggest a better way.

这篇关于如何使用Azure EventHub触发函数返回到检查点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆