cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Can we use multiple git repos for a job running multiple tasks?

thib
New Contributor III

I have a job running multiple tasks :

  • Task 1 runs a machine learning pipeline from git repo 1
  • Task 2 runs an ETL pipeline from git repo 1

Task 2 is actually a generic pipeline and should not be checked in repo 1, and will be made available in another repo where various ETL pipelines are stored.

However I see now that git repos are set up per Job, and not per Task.

Does anyone have a solution for this, which I would suppose is quite a common scenario?

image

3 REPLIES 3

Prabakar
Databricks Employee
Databricks Employee

hi @Thibault Daoulasโ€‹ if task2 is generic and doesnt depend on task1, could you try removing the depends on filed in task2 and run the pipeline?

image

thib
New Contributor III

Hi @Prabakar Ammeappinโ€‹ , task2 depends on task1, as it sends out the results from task1.

I also tried removing the dependency and edited the git reference, but it changes the git reference for all the tasks in the job.

Do you know if that is a feature missing from jobs, or if it is intentional?

trijit
New Contributor II

The way to go about this would be to create Databricks repos in the workspace and then use that in the task formation. This way we can refer multiple repos in different tasks.

image

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group