guan404ming commented on code in PR #77229:
URL: https://github.com/apache/airflow/pull/77229#discussion_r4750884441


##########
ts-sdk/src/sdk/task.ts:
##########
@@ -41,6 +62,8 @@ export interface TaskContext<TConf = Readonly<Record<string, 
JsonValue>>> {
   readonly mapIndex: number;
   /** `conf` of the Dag run, or `{}` when the run has none. */
   readonly conf: TConf;
+  /** The Dag run that this task instance belongs to. */
+  readonly dagRun: DagRun<TConf>;

Review Comment:
   Go and Java keep `dagId` and `runId` on `TaskInstance` as well as on the Dag 
run, so I kept them here too. `conf` is only on the Dag run there, so I removed 
the flat one. Happy to drop `dagId` and `runId` too if you prefer.



-- 
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]

Reply via email to