I am debugging a simple application:
import faust
app = faust.App('app08')
# want to start from the beginning of the
# topic every time the application restarts
@app.agent(topic)
async def process(stream):
async for event in stream:
print(event)
And would like on restart of this application for the agent to read from the earliest offset. Right now, it's smart and knows the position of the last message read and starts from that position on restart. Despite scouring the docs for a while, I could not find an example of how to do this. The only way I know how to do this is to change the application name, for example: app08
to app09
.