python script to run in the cloud
-
Im trying to run the simulation in specific cloud server but it gives me the error:
[INFO] Running simulation 'LF' on server '17216a82-d756-4fa0-b8e2-eb3f93166eb4'...
Warning : No connection available (trial 1 out of 15)
Warning : No connection available (trial 2 out of 15)
Warning : No connection available (trial 3 out of 15)
Warning : No connection available (trial 4 out of 15)
Warning : No connection available (trial 5 out of 15)
Warning : No connection available (trial 6 out of 15)
Warning : No connection available (trial 7 out of 15)
Warning : No connection available (trial 8 out of 15)
Warning : No connection available (trial 9 out of 15)
Warning : No connection available (trial 10 out of 15)
Warning : No connection available (trial 11 out of 15)
Warning : No connection available (trial 12 out of 15)
Warning : No connection available (trial 13 out of 15)
Warning : No connection available (trial 14 out of 15)
Warning : No connection available (trial 15 out of 15)
[ERROR] Failed to run simulation 'LF' on server '17216a82-d756-4fa0-b8e2-eb3f93166eb4': No connection available to submit jobs. Please check your Network settings.Code used:
import s4l_v1.document as document
import s4l_v1.model as model
import s4l_v1.simulation as simulation
for simulation_instance in simulations:
servers = simulation.GetAvailableServers()
server_id = servers.get(my_server_name)
sim_future=simulation_instance.RunSimulation(server_id)
sim_future.Wait()
note: the connection to the cloud is established correctly and appears in the run menu with name and ip.