You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/02/14 22:58:13 UTC
Re: [PR] Enable Operators to Set Task Notes During Execution [airflow]
potiuk commented on code in PR #61066:
URL: https://github.com/apache/airflow/pull/61066#discussion_r2808072810
##########
task-sdk/tests/task_sdk/execution_time/test_task_runner.py:
##########
@@ -2206,6 +2207,20 @@ def test_get_first_reschedule_date(
context = runtime_ti.get_template_context()
assert runtime_ti.get_first_reschedule_date(context=context) == expected_date
+ def test_set_task_instance_note(self, create_runtime_ti, mock_supervisor_comms):
+ """Test that the first reschedule date is fetched from the Supervisor."""
+ task = BaseOperator(task_id="test_task")
+ dag_id = "test_dag"
+ runtime_ti = create_runtime_ti(task=task, dag_id=dag_id, logical_date=timezone.datetime(2025, 1, 2))
+
+ runtime_ti.set_task_instance_note(note="This is a test note.")
Review Comment:
I t seems plausible Indeed.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org