I am using a test setup including confluent platform (docker) and am processing records with the following information: Sensor-ID, timestamp, value. Using robinhood's faust (similar to Kafka Streams but in python) I am trying to do the following:
Whenever there is a new record for a sensor there should be a "timer" and if no new record for this sensor-ID is received within the given time there should be an error indicating possible failure for that sensor/machine.
I have tried using time.sleep()
but what happens is that it will just sleep for 10 sec and then process the next record.
Is it even possible to do something like this with the setup I am using?