โ11-03-2022 07:33 AM
Is it possible to schedule different runs for job with parameters? I have a notebook that generates data based on the supplied parameter but would like to schedule runs instead of manually starting them. I assume that this would be possible using the REST API but would like to avoid having my token in plaintext. Would git integration have something for this?
โ11-04-2022 12:51 AM
You can pass parameters for your task. Each task type has different requirements for formatting and passing the parameters.
https://docs.databricks.com/workflows/jobs/jobs.html#create-a-job
REST API can also pass parameters fro jobs. Tokens replace passwords in an authentication flow and should be protected like passwords. To protect tokens, Databricks recommends that you store tokens in:
Please refer: https://docs.databricks.com/dev-tools/api/latest/authentication.html
Also, you can store the tokens in .netrc file and use them in curl : https://docs.databricks.com/dev-tools/api/latest/authentication.html#store-tokens-in-a-netrc-file-an...
For GIT integration please refer: https://docs.databricks.com/repos/index.html.
Please let us know if this helps.
โ11-04-2022 06:46 AM
Yes I am aware of these. I wanted to know if I can schedule tasks with different parameters, is there any functionality in Databricks that would allow this?
โ11-04-2022 10:25 AM
Hi @k.b.โ,
To Run a job with different parameters,
You can use Run Now with Different Parameters to re-run a job with different parameters or values for existing parameters.
โ11-04-2022 10:28 AM
I want to schedule this process daily. To run automatically.
โ11-04-2022 10:37 AM
Hi @k.b.โ, You can create and manage notebook jobs directly in the notebook UI, as given in this article.
You can create and manage schedules if a notebook is already assigned to one or more jobs.
If a notebook is not assigned to a job, you can create a job and a schedule to run the notebook.
Please let us know if this helps.
โ11-04-2022 03:47 PM
Not really... I have different values for a single parameter within a notebook. Can I schedule under a single job, runs for each different value?
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.