Error while using dbutils.jobs.taskValues.set(key="file_name", value="xyz_file") statment in dbt python model

The problem I’m having

Error while using dbutils.jobs.taskValues.set(key=“file_name”, value=“xyz_file”) statment in dbt python model

I am calling my dbt model within databricks job but failing with below error Py4JJavaError: An error occurred while calling o414.setJson.

: com.databricks.common.client.DatabricksServiceHttpClientException: INVALID_PARAMETER_VALUE: Run 417417481705487 is not a task run; setting task values is only supported for task runs.

dbutils.jobs.taskValues.set(key=“file_name”, value=“xyz_file”)

Put code inside backticks
  to preserve indentation
    which is especially important 
      for Python and YAML!