I want to make a program that polls a SQL database every n seconds (n>10). And it validates the data in a particular column and calls a function based on it.
For eg,
when column has '1' -> call function1
when column has '2' -> call function2
when column has '3' -> exits
I looked into multithreading and saw a solution based on the threading.timer, will that satisfy my use-case?
Also, I will be okay with time drifts of up to +/-1 second.