|
59 | 59 | UpdateProgressReport, |
60 | 60 | ) |
61 | 61 | from otaclient._types import ( |
62 | | - ClientUpdateRequestV2, |
63 | 62 | FailureType, |
64 | 63 | IPCRequest, |
65 | 64 | IPCResEnum, |
@@ -963,14 +962,6 @@ def update(self, request: UpdateRequestV2) -> None: |
963 | 962 | failure_type=e.failure_type, |
964 | 963 | ) |
965 | 964 |
|
966 | | - def client_update(self, request: ClientUpdateRequestV2) -> None: |
967 | | - """ |
968 | | - NOTE that client update API will not raise any exceptions. The failure information |
969 | | - is available via status API. |
970 | | - """ |
971 | | - # TODO: implement core part later |
972 | | - pass |
973 | | - |
974 | 965 | def rollback(self, request: RollbackRequestV2) -> None: |
975 | 966 | self._live_ota_status = OTAStatus.ROLLBACKING |
976 | 967 | new_session_id = request.session_id |
@@ -1044,24 +1035,6 @@ def main( |
1044 | 1035 | ) |
1045 | 1036 | _allow_request_after = _now + HOLD_REQ_HANDLING_ON_ACK_REQUEST |
1046 | 1037 |
|
1047 | | - elif isinstance(request, ClientUpdateRequestV2): |
1048 | | - |
1049 | | - _client_update_thread = threading.Thread( |
1050 | | - target=self.client_update, |
1051 | | - args=[request], |
1052 | | - daemon=True, |
1053 | | - name="ota_client_update_executor", |
1054 | | - ) |
1055 | | - _client_update_thread.start() |
1056 | | - |
1057 | | - resp_queue.put_nowait( |
1058 | | - IPCResponse( |
1059 | | - res=IPCResEnum.ACCEPT, |
1060 | | - session_id=request.session_id, |
1061 | | - ) |
1062 | | - ) |
1063 | | - _allow_request_after = _now + HOLD_REQ_HANDLING_ON_ACK_REQUEST |
1064 | | - |
1065 | 1038 | elif ( |
1066 | 1039 | isinstance(request, RollbackRequestV2) |
1067 | 1040 | and self._live_ota_status == OTAStatus.SUCCESS |
|
0 commit comments