piku/examples/python/worker.py

7 wiersze
146 B
Python

import os, sys, time
for x in xrange(0,int(os.environ['RANGE'])):
print x
sys.stdout.flush()
time.sleep(int(os.environ['INTERVAL']))