Hi,
I too was struggling with high cpu, the way I handle is
In SDK edit go_appengine/google/appengine/tools/devappserver2/go_runtime.py
and change "get_restart_directories" to watch for WATCHPATH not GOPATH
def get_restart_directories(self):
"""Returns a list of directories changes in which should trigger a restart.
A list of src directory paths in the GOPATH. Changes (i.e. files added,
deleted or modified) in these directories will trigger a restart of all
instances created with this factory.
go_path = os.environ['WATCHPATH']
if sys.platform.startswith('win32'):
roots = go_path.split(';')
roots = go_path.split(':')
dirs = [os.path.join(r, 'src') for r in roots]
return [d for d in dirs if os.path.isdir(d)]
then set WATCHPATH and run the app
WATCHPATH=<all the dir to watch> --enable_sendmail dev_appserver.py
HTH
bsr