yrenat commented on code in PR #6046:
URL: https://github.com/apache/texera/pull/6046#discussion_r4058845020
##########
computing-unit-managing-service/src/main/scala/org/apache/texera/service/resource/ComputingUnitManagingResource.scala:
##########
@@ -678,8 +880,13 @@ class ComputingUnitManagingResource {
KubernetesClient.deletePod(cuid)
}
+ val terminationReason =
WorkflowComputingUnitTerminationReasonEnum.USER_REQUESTED
unit.setTerminateTime(new Timestamp(System.currentTimeMillis()))
+ unit.setTerminationReason(terminationReason)
cuDao.update(unit)
+ logger.info(
+ s"Terminated computing unit: cuid=${unit.getCuid},
name=${unit.getName}, uid=${unit.getUid}, username=${user.getName},
reason=${terminationReason.getLiteral}"
Review Comment:
Correct. Both log sites now use `owner_uid/owner` for the unit and
`terminated_by_uid/terminated_by` for the caller
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]