Created
March 28, 2018 17:33
-
-
Save fomightez/b012e51ebef6ec58c1515df3ee0c850a to your computer and use it in GitHub Desktop.
do something every eight minutes with Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
def executeSomething(): | |
#code here | |
print ('.') | |
time.sleep(480) #60 seconds times 8 minutes | |
while True: | |
executeSomething() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternatively, looks like can just use the following to keep a cell active?
See here.
But I need to test this more. Maybe too active and gets shut down, probably by being caught up in stuff trying to catch miners.