faust

Faust deserializing model when model field is another model

Faust deserializing model when model field is another model Question: I have a model that is a little complicated where one field can be one of several other models which looks similar to the following: ”’These are the options”’ class ChatterFilter(Record, serializer=’json’): counts:int time:int init_state:str new_state:str stale_time:int comment:str class LimitFilter(Record, serializer=’json’): lolo:float low:float high:float hihi:float …

Total answers: 1

Can't Access configparser environment variables from env.ini file in faust (kafka streaming)

Can't Access configparser environment variables from env.ini file in faust (kafka streaming) Question: My Project is on FastAPI and the structure goes like this. – project – app – kafka_layer – faustworker.py – core – configs.py – env.ini My env.ini file goes like this [DEFAULT] DATABASE_URL=url_to_db I’ve tried adding this code in configs.py import configparser …

Total answers: 1

Ensure faust consumer/agent seeks to offset 0 after rebalance

Ensure faust consumer/agent seeks to offset 0 after rebalance Question: Not much point explaining why this needs to happen, but we need to have a worker always read from the beginning of a topic on startup and after a rebalance. The following snippet does work on start to ensure that when you start a worker …

Total answers: 1