amoghrajesh commented on code in PR #66699:
URL: https://github.com/apache/airflow/pull/66699#discussion_r3241094465
##########
task-sdk/tests/task_sdk/execution_time/test_task_runner.py:
##########
@@ -4909,6 +4909,20 @@ def execute(self, context):
)
mock_supervisor_comms.send.assert_any_call(GetTaskState(ti_id=runtime_ti.id,
key="job_id"))
+ def test_task_can_set_state_with_retention_days(self, create_runtime_ti,
mock_supervisor_comms):
+ class MyOperator(BaseOperator):
+ def execute(self, context):
+ context["task_state"].set("job_id", "spark_app_001",
retention_days=7)
Review Comment:
Fixed in d7ce05ca1d
--
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]