Skip to content

Instantly share code, notes, and snippets.

@fomightez
Created March 28, 2018 17:33
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fomightez/b012e51ebef6ec58c1515df3ee0c850a to your computer and use it in GitHub Desktop.
do something every eight minutes with Python
import time
def executeSomething():
#code here
print ('.')
time.sleep(480) #60 seconds times 8 minutes
while True:
executeSomething()
@fomightez
Copy link
Author

fomightez commented Mar 11, 2022

Alternatively, looks like can just use the following to keep a cell active?

while True:pass

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment