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
Esteemed Contributor III
Esteemed Contributor III

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

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!