I'm creating a consumer with confluent-kafka in python, I want to create it in a way that if the consumer is restarted, it starts from the last available message in the topic (per partition), it doesn't matter if it lefts behind messages without commit.
This is to avoid to process millions of messages that were generated while the consumer was down and that are not longer required to be processed.
I tried setting different options of the parameter auto.offset.reset but at most if starts from the last committed offset. This is my configuration:
consumer = Consumer({"bootstrap.servers": "localhost:9092",
"group.id": group_id,
"auto.offset.reset": "latest",
"isolation.level": "read_committed",
"default.topic.config": {"enable.auto.commit": False}})
Is there any option to achieve this behavior?
Note: I might have multiple consumers, but none manually assigned to a specific partition