diff --git a/databricks/sdk/dbutils.py b/databricks/sdk/dbutils.py index 7139c0c4e..afd57d8b5 100644 --- a/databricks/sdk/dbutils.py +++ b/databricks/sdk/dbutils.py @@ -168,7 +168,6 @@ class _JobsUtil: class _TaskValuesUtil: """Remote equivalent of task values util""" - values = {} def get(self, taskKey: str, key: str, default: any = None, debugValue: any = None) -> None: """ @@ -180,13 +179,6 @@ def set(self, key: str, value: any) -> None: """ Sets a task value on the current task run """ - self.values[key] = value - - def checkTaskValue(self, key: str, value: any) -> bool: - """ - Check that the task value with given key is equal to the given value - """ - return self.values.get(key) == value def __init__(self) -> None: self.taskValues = self._TaskValuesUtil() diff --git a/tests/test_dbutils.py b/tests/test_dbutils.py index f2d78b435..c1a349f95 100644 --- a/tests/test_dbutils.py +++ b/tests/test_dbutils.py @@ -206,15 +206,9 @@ def test_secrets_get_and_redacting_logs(dbutils, mocker): assert value == 'hello' -def test_jobs_task_values_check_task_value(dbutils): - assert (dbutils.jobs.taskValues.checkTaskValue('key', 'value') == False) - - def test_jobs_task_values_set(dbutils): dbutils.jobs.taskValues.set('key', 'value') - assert dbutils.jobs.taskValues.checkTaskValue('key', 'value') - def test_jobs_task_values_get(dbutils): assert dbutils.jobs.taskValues.get('taskKey', 'key', debugValue='debug') == 'debug'