+ if (host && host->isOff()) {/* FIMXE: handle resource failure for parallel tasks too */
+ /* If the host running the synchro failed, notice it. This way, the asking
+ * process can be killed if it runs on that host itself */
+ state = SIMIX_FAILED;
+ } else if (surf_exec->getState() == simgrid::surf::Action::State::failed) {
+ /* If the host running the synchro didn't fail, then the synchro was canceled */
+ state = SIMIX_CANCELED;
+ } else {
+ state = SIMIX_DONE;
+ }
+
+ if (surf_exec) {