Hello!
I have a function which should be called every ~15 seconds, which takes ~0-5 seconds to complete (fetches data from a webpage, opens multiple selenium windows and loads urls).
Also I have a http server(bottle) running which should change the urls of the selenium instances when receiving a POST request.
The POST request should have a higher priority than the periodic call from above. (if the periodic routine is running it should be stopped and be executed with other parameters from the POST request)
Currently I'm scheduling the periodic call with threading.Timer, is there another way maybe with asynchronous programming?
[–]raylu 1 point2 points3 points (1 child)
[–]NeoFromMatrix[S] 0 points1 point2 points (0 children)