| 82 | |
| 83 | |
| 84 | void ProxyExecutor::reregistered(ExecutorDriver* driver, |
| 85 | const SlaveInfo& slaveInfo) |
| 86 | { |
| 87 | InterpreterLock lock; |
| 88 | |
| 89 | PyObject* slaveInfoObj = nullptr; |
| 90 | PyObject* res = nullptr; |
| 91 | |
| 92 | slaveInfoObj = createPythonProtobuf(slaveInfo, "SlaveInfo"); |
| 93 | |
| 94 | if (slaveInfoObj == nullptr) { |
| 95 | goto cleanup; // createPythonProtobuf will have set an exception. |
| 96 | } |
| 97 | |
| 98 | res = PyObject_CallMethod(impl->pythonExecutor, |
| 99 | (char*) "reregistered", |
| 100 | (char*) "OO", |
| 101 | impl, |
| 102 | slaveInfoObj); |
| 103 | if (res == nullptr) { |
| 104 | cerr << "Failed to call executor reregistered" << endl; |
| 105 | goto cleanup; |
| 106 | } |
| 107 | |
| 108 | cleanup: |
| 109 | if (PyErr_Occurred()) { |
| 110 | PyErr_Print(); |
| 111 | driver->abort(); |
| 112 | } |
| 113 | Py_XDECREF(slaveInfoObj); |
| 114 | Py_XDECREF(res); |
| 115 | } |
| 116 | |
| 117 | |
| 118 | void ProxyExecutor::disconnected(ExecutorDriver* driver) |
nothing calls this directly
no test coverage detected