shivaam commented on code in PR #67908: URL: https://github.com/apache/airflow/pull/67908#discussion_r3425395830
########## ts-sdk/src/task.ts: ########## @@ -0,0 +1,63 @@ +/*! + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +// The task-handler call surface — types every user task handler sees. + +import type { TaskClient } from "./client.js"; + +/** Runtime metadata for the current task invocation. */ +export interface TaskContext { + /** Identifier of the Dag containing this task. */ + readonly dagId: string; + /** Task ID for this handler invocation, including any TaskGroup prefix. */ + readonly taskId: string; + /** Dag run identifier for the current task attempt. */ + readonly runId: string; + /** Airflow try number for the current task attempt. */ + readonly tryNumber: number; + /** -1 for non-mapped tasks, 0..N-1 for mapped instances. */ + readonly mapIndex: number; + /** Stable Airflow task instance identifier. */ + readonly taskInstanceId: string; Review Comment: Thanks for pointing this. I have made the changes and removed the taskInstanceId -- 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]
