Building a Databricks job with depends_on=['task1'] raises AttributeError: str object has no attribute as_dict because the field expects TaskDependency objects, not plain strings. Wrap each dependency: jobs.Task(name='task2', depends_on=[jobs.TaskDependency(task_key='task1')], ...). Another user on the thread confirmed this fixed the same error.