CampbellGroup / common

Shared campbell lab code.
GNU Lesser General Public License v3.0
8 stars 5 forks source link

Node Client Error Handling #71

Closed aransfor closed 8 years ago

aransfor commented 8 years ago

The node client does not recognize if a local server in its available_servers() list is being run or if a previous node instance has started one of these servers. An "Error with xxx node" is produced despite a functioning server running.

        for server in nodeDict[node]:
            if server in running_servers:#cxn.servers: 
                print server + ' is already running'
            else:
                print 'starting ' + server
                try:
                    cxn.servers[node].start(server)
                except Exception as e:
                    print 'ERROR with ' + server

error handling should happen here, i.e if bad identification error then print "Warning server running locally or from previous node instance"

also it would be nice if there is a name conflict this is printed

aransfor commented 8 years ago

Everyone is on scalabrad-web which has its own node client... I am closing this now