JoelEmmanuelCloud commented on code in PR #77587:
URL: https://github.com/apache/airflow/pull/77587#discussion_r4696757496
##########
ts-sdk/src/hitl/operator.ts:
##########
@@ -66,7 +66,7 @@ async function executeHITL(task: HITLTask<never>, op:
OperatorContext): Promise<
const { details, ctx, client, logs } = op;
// The inputs are read here only, for the text: the resumed run must not
depend on upstream
// XComs still being there.
- const args = await op.resolveArgs(task.argNames);
+ const { args } = await op.resolveArgs(task.argNames);
Review Comment:
Agreed, mine only covered approval and hitl. Moved it into the get trap and
dropped the wrapper. Added tests for both, and for arguments that are really
named `then` or `toJSON`.
##########
ts-sdk/src/sdk/operator.ts:
##########
@@ -54,7 +55,7 @@ export interface OperatorContext {
readonly client: CoordinatorClient;
readonly logs: LogChannel;
/** Bind the task's declared inputs, applying the `withArgNames` renames of
`argNames`. */
Review Comment:
`resolveArgs` is back to how it was, since the get trap covers it now. If
you'd rather keep the wrapper too, I'll add this doc.
--
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]