Need to add error handling for sync calls
suryadipnag opened this issue · comments
suryadipnag commented
A driver should be updated with sending 'STATUS FAILED' message when there are exceptions in code.
Generally for most of the drivers, execute_lifecycle() would return some acknowledgement as a response, then a background thread is started to monitor the execution by calling get_lifecycle_execution(). On the basis of that the driver would have a way to check the status of the request. But in some cases (Netconf Lifecycle Driver etc.), the result is coming back immediately and so we can call lifecycle_messaging_service.send_lifecycle_execution immediately when async_enabled is false. This needs to be implemented.