<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Orchestrate run of a folder in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/orchestrate-run-of-a-folder/m-p/23965#M16627</link>
    <description>&lt;P&gt;So that seemed to work when running the notebook manually. Unfortunately when I set it as a job to run it throws an error. Also will this run them sequentially? I need them to run one at a time in order. &lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot_20221103_021555"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1260i1FA6FF6258C6DB41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20221103_021555" alt="Screenshot_20221103_021555" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 19:17:02 GMT</pubDate>
    <dc:creator>cmilligan</dc:creator>
    <dc:date>2022-11-03T19:17:02Z</dc:date>
    <item>
      <title>Orchestrate run of a folder</title>
      <link>https://community.databricks.com/t5/data-engineering/orchestrate-run-of-a-folder/m-p/23962#M16624</link>
      <description>&lt;P&gt;I'm needing to run the contents of a folder, which can change over time. Is there a way to set up a notebook that can orchestrate running all notebooks in a folder? My though was if I could retrieve a list of the notebooks I could create a loop to run them&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 12:36:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/orchestrate-run-of-a-folder/m-p/23962#M16624</guid>
      <dc:creator>cmilligan</dc:creator>
      <dc:date>2022-11-03T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Orchestrate run of a folder</title>
      <link>https://community.databricks.com/t5/data-engineering/orchestrate-run-of-a-folder/m-p/23963#M16625</link>
      <description>&lt;P&gt;hello, could you detail what the file type would be? To run several files you could enter the *(asterisk)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 12:49:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/orchestrate-run-of-a-folder/m-p/23963#M16625</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-11-03T12:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Orchestrate run of a folder</title>
      <link>https://community.databricks.com/t5/data-engineering/orchestrate-run-of-a-folder/m-p/23964#M16626</link>
      <description>&lt;P&gt;List all notebooks by making API call and then run them by using dbutils.notebook.run:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import requests
ctx = dbutils.notebook.entry_point.getDbutils().notebook().getContext()
host_name = ctx.tags().get("browserHostName").get()
host_token = ctx.apiToken().get()
&amp;nbsp;
notebook_folder = '/Users/hubert.dudek@databrickster.com'
&amp;nbsp;
response = requests.get(
f'https://{host_name}/api/2.0/workspace/list',
headers={'Authorization': f'Bearer {host_token}'},
json={'path': notebook_folder}
).json()
&amp;nbsp;
for notebook in response['objects']:
    if notebook['object_type'] == 'NOTEBOOK':
        dbutils.notebook.run(notebook['path'], 1800)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:26:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/orchestrate-run-of-a-folder/m-p/23964#M16626</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-11-03T14:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Orchestrate run of a folder</title>
      <link>https://community.databricks.com/t5/data-engineering/orchestrate-run-of-a-folder/m-p/23965#M16627</link>
      <description>&lt;P&gt;So that seemed to work when running the notebook manually. Unfortunately when I set it as a job to run it throws an error. Also will this run them sequentially? I need them to run one at a time in order. &lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot_20221103_021555"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1260i1FA6FF6258C6DB41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20221103_021555" alt="Screenshot_20221103_021555" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 19:17:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/orchestrate-run-of-a-folder/m-p/23965#M16627</guid>
      <dc:creator>cmilligan</dc:creator>
      <dc:date>2022-11-03T19:17:02Z</dc:date>
    </item>
  </channel>
</rss>

