labscript-suite / runmanager

𝗿𝘂𝗻𝗺𝗮𝗻𝗮𝗴𝗲𝗿 is an intuitive graphical interface for controlling 𝘭𝘢𝘣𝘴𝘤𝘳𝘪𝘱𝘵 𝘴𝘶𝘪𝘵𝘦 experiments. Includes multi-dimensional parameter scans and a remote programming interface for automation.
http://labscriptsuite.org
Other
3 stars 45 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.labscriptsuite.org/#!/labscript_suite/blacs/issues/12/error-not-handled-well-during-connection (labscript-suite/blacs#12)