Best way to execute multiple Synapse notebook activities in a pipeline

Johan á Rogvi-Hansen 106 Reputation points
2022-09-19T09:35:53.797+00:00

Hi,

I can read here: https://learn.microsoft.com/en-us/answers/questions/672260/azure-synapse-use-single-session-for-multiple-note.html that it is not possible to use a single session for multiple Synapse notebooks in a pipeline. I haven't been able to find any documentation on whether this is still the case, or what to (optimally) do in a case where I have a pipeline and need to execute multiple Synapse notebook activities.

In the linked post they mention it is possible to execute one notebook with %run calls in the notebook of all the notebooks you want to simultaneously execute. Is this really the best way forward, or is there another way? Also, are there any general tips for how to optimally execute multiple notebooks, both simultaneously and successively?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,841 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 88,471 Reputation points Microsoft Employee
    2022-09-20T04:47:09.177+00:00

    Hello @Johan á Rogvi-Hansen ,

    Thanks for the question and using MS Q&A platform.

    Currently it’s not been supported yet - create one session in Synapse Analytics that multiple notebooks can use.

    You can use %run and mssparkutils.notebook.run which executes multiple Synapse notebooks.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is jhow you can be part of Q&A Volunteer Moderators

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.