- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 07:26 AM
Can I run multiple jobs(for example: 100+) in parallel that refers the same notebook? I supply each job with a different parameter. If we can do this, what would be the impact? (for example: reliability, performance, troubleshooting etc. )
Example:
Notebook:
table_name = dbutils.widgets.get("table_name")
df = (spark.read.format("parquet").load(f's3://data_source_bucket_name/{table_name}/'))
<process the data >
df.write.saveAsTable(table_name,mode="overwrite")
Job 1 Parameters:
table_name = 'Table_1'
Job 2 Parameters:
table_name = 'Table_2'
.
.
.
.
Job 100 Parameters:
table_name = 'Table_100'
Explanation : Read parquet files from the table folder and load into delta table after processing. The processing steps are the same for all the tables.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 07:56 AM
Hi @Murthy Ramalingam , you can create multiple jobs referencing the same notebook code without any issue. We generally see issues when writing to the same location or table . However, in your case you will be passing different tables to these jobs, so I expect it to run fine.
For troubleshooting purposes, it is always advisable to use job cluster for different jobs so that the logs for each job run are accessible separately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 07:56 AM
Hi @Murthy Ramalingam , you can create multiple jobs referencing the same notebook code without any issue. We generally see issues when writing to the same location or table . However, in your case you will be passing different tables to these jobs, so I expect it to run fine.
For troubleshooting purposes, it is always advisable to use job cluster for different jobs so that the logs for each job run are accessible separately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 11:17 AM
When you run a job with a notebook, it doesn't go in and hit "run all" in the notebook but makes a copy of it to run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 09:26 PM
Hi @Murthy Ramalingam
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!

