guan404ming commented on code in PR #55149:
URL: https://github.com/apache/airflow/pull/55149#discussion_r2314203457
##########
airflow-core/src/airflow/ui/src/utils/hitl.ts:
##########
@@ -167,10 +167,23 @@ export const getHITLFormData = (paramsDict: ParamsSpec,
option?: string): HITLRe
};
export const getHITLState = (translate: TFunction, hitlDetail: HITLDetail) => {
- const { chosen_options: chosenOptions, options, params, response_received:
responseReceived } = hitlDetail;
+ const {
+ chosen_options: chosenOptions,
+ options,
+ params,
+ response_received: responseReceived,
+ task_instance: { state: taskInstanceState },
+ } = hitlDetail;
+
+ const isNotDeferred = taskInstanceState !== "deferred";
let stateType: [string, string] = ["responseRequired", "responseReceived"];
+ if (!responseReceived && isNotDeferred) {
+ // need to update this after unfreezing hitl.json
Review Comment:
Thanks! good suggestion.
--
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]