cool9850311 commented on code in PR #73420:
URL: https://github.com/apache/airflow/pull/73420#discussion_r4071919390
##########
task-sdk/tests/task_sdk/coordinators/test_subprocess.py:
##########
@@ -820,6 +820,19 @@ def test_namespace_levels_omitted_when_unset(self,
mock_client):
env = popen_mock.call_args.kwargs["env"]
assert env["AIRFLOW__LOGGING__NAMESPACE_LEVELS"] == ""
+ @conf_vars({("state_store", "default_retention_days"): "7"})
+ def test_state_store_retention_passed_to_subprocess_env(self, mock_client):
+ """A language SDK runtime gets the resolved state store retention via
the environment at launch."""
+ _, popen_mock, _ = self._start_with_mocks(mock_client,
command=["/bin/true"])
+ env = popen_mock.call_args.kwargs["env"]
+ assert env["AIRFLOW__STATE_STORE__DEFAULT_RETENTION_DAYS"] == "7"
+
+ def test_state_store_retention_falls_back_when_unset(self, mock_client):
Review Comment:
Deleted.
--
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]