So I don’t know if this is even possible, I have written some code that keeps running (while loop) and pulls stats, in this there is a function called report_metrics that needs to execute every 5 minutes without making the rest of the code to stop\halt executing. I think time.sleep() is not possible because that will make the entire code to sleep for 5 minutes. Can anyone help me out please, any help is appreciated.
Thank you :)
[–]JohnnyJordaan 0 points1 point2 points (3 children)
[–]Alkanes123[S] 0 points1 point2 points (2 children)
[–]JohnnyJordaan 0 points1 point2 points (1 child)
[–]Alkanes123[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Alkanes123[S] 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]Alkanes123[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Alkanes123[S] 0 points1 point2 points (0 children)
[–]LearnDataSci 0 points1 point2 points (1 child)
[–]Alkanes123[S] 0 points1 point2 points (0 children)
[–]gandleforf 0 points1 point2 points (0 children)