cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Jobs REST Api - Run a Job that is connected to a git_source

antoniodavideca
New Contributor III

On Jobs REST API is possible to create a new Job, specifying a git_source.

My question is about triggering the job.

Still on Jobs REST Api is possible to trigger a job using the job_id, but I don't find a way to tell anyhow to Databricks, what's the entry point of the Repository that was specified at creation time.

Am I missing something?

1 ACCEPTED SOLUTION

Accepted Solutions

Prabakar
Esteemed Contributor III
Esteemed Contributor III

@Antonio Davide Cali​ you can use the runnow API to trigger your run. If you want to change any job values like path or cluster config then you need to use JobUpdate API.

View solution in original post

5 REPLIES 5

Prabakar
Esteemed Contributor III
Esteemed Contributor III

@Antonio Davide Cali​ you can use the runnow API to trigger your run. If you want to change any job values like path or cluster config then you need to use JobUpdate API.

Hello @Prabakar Ammeappin​ 

Yes my issue was that I misunderstood the Docs.

It seems that even if you forward `git_source`, a `task` inside `tasks` field must be created as a `notebook_task`

Prabakar
Esteemed Contributor III
Esteemed Contributor III
Ah. Got it. So is your issue resolved or are you looking for further information.

yes fixed

Prabakar
Esteemed Contributor III
Esteemed Contributor III

It's good to know that your issue is resolved. It would be great if you could mark the best answer, so this thread could be closed.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.