labscript-suite-temp-2 / runmanager

runmanager is a graphical user interface (GUI) used to aid the compilation of labscript experiment scripts into hardware instructions to be executed on the hardware. Experiment parameters can be adjusted in the GUI, and lists of parameters can be used to create sequences of experiments, and scan over complex parameter spaces.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Asynchronous compilation functions should handle exceptions gracefully #35

Open philipstarkey opened 9 years ago

philipstarkey commented 9 years ago

Original report (archived issue) by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


The asynchronous compilation functions of the runmanager API need to catch exceptions in the worker processes and call done_callback(False) so that calling code is not stuck waiting for the runmanager API to finish compilation (when it has actually crashed and given up).

See https://bitbucket-archive-test.labscriptsuite.org/#!/labscript_suite/blacs/issues/12/error-not-handled-well-during-connection (labscript-suite-temp-2/blacs#12)