aaron-y-chen commented on code in PR #73357:
URL: https://github.com/apache/airflow/pull/73357#discussion_r4056279910


##########
ts-sdk/src/sdk/client.ts:
##########
@@ -47,6 +47,23 @@ export interface TaskClient {
    */
   getVariableOrThrow(key: string): Promise<string>;
 
+  /**
+   * Store an Airflow Variable, replacing any existing value.
+   *
+   * The value is stored as a string. Serialize structured data (for example
+   * with `JSON.stringify`) before storing it.
+   *
+   * Omitting `description` clears the description the Variable had.
+   */
+  setVariable(key: string, value: string, description?: string | null): 
Promise<void>;
+
+  /**
+   * Delete an Airflow Variable.
+   *
+   * Rejects when the key does not exist, matching Python `Variable.delete`.
+   */

Review Comment:
   Thanks, that's much better. Let me rephrase it. 😄



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