lanl-ansi / dwisc

D-Wave Ising Sample Collector (D-WISC)
Other
3 stars 2 forks source link

Connection bug #7

Closed jnelson1 closed 4 years ago

jnelson1 commented 4 years ago

I was experiencing a connection error which caused the majority of my submitted jobs to fail. I made changes to handle this exception with a try/catch block that resubmits the round that caused the exception. I save the state of the solutions dictionary before each round so that if there is a connection error in the middle of the round, the round can be resubmitted without double counting. Also, occasionally the Dwave server never responded to my submitted jobs causing the program to hang indefinitely, and so I put a timeout limit for waiting for the response. This also throws an exception within the try/catch block which will cause the round to be resubmitted. @ccoffrin