MD-Studio / cerise-mdstudio-das5

A specialisation of cerise for MDStudio and DAS5
Apache License 2.0
0 stars 0 forks source link

ServiceAlreadyExists exception raises when trying to reconnect service #1

Closed felipeZ closed 7 years ago

felipeZ commented 7 years ago

I try to run the the gromacs example Everything seemed to go well until I press control-C while waiting for the clsuter to finish the job, then I relaunched the script and got the following exception:

(mdstudio) user@server:~/WorkbenchPython/Cerise_examples/cerise-mdstudio-das5/examples$ python run_gromacs.py 
^CTraceback (most recent call last):
  File "run_gromacs.py", line 48, in <module>
    sleep(10)
KeyboardInterrupt
(mdstudio) user@server:~/WorkbenchPython/Cerise_examples/cerise-mdstudio-das5/examples$ python run_gromacs.py 
Traceback (most recent call last):
  File "run_gromacs.py", line 11, in <module>
    '123abc')
  File "/home/user/miniconda2/envs/mdstudio/lib/python2.7/site-packages/cerise_client/service.py", line 91, in create_se
rvice
    raise errors.ServiceAlreadyExists()
cerise_client.errors.ServiceAlreadyExists

What has gone wrong?

felipeZ commented 7 years ago

The service is already created and running in a docker container and therefore can be query as :

 srv = cs.get_service('cerise-mdstudio-das5-myuser', 29593) 

Then we can get the job data as:

 job = srv.get_job_by_id('599d7de17b9d468fac34f6ab2843a851')