<?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: Delta Live Tables - RETRY_ON_FAILURE in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-retry-on-failure/m-p/5927#M2190</link>
    <description>&lt;P&gt;@Gustavo Martins​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;Yes, you can set the RETRY_ON_FAILURE property for a Delta Live Table (DLT) using the API. You can set the retry_on_failure parameter when creating or updating a DLT using the dlt.create or dlt.update API calls respectively. Here's an example of how you can set the  retry_on_failure property to true:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import requests
import json
&amp;nbsp;
api_token = '&amp;lt;YOUR_API_TOKEN&amp;gt;'
endpoint = 'https://&amp;lt;YOUR_DATABRICKS_INSTANCE&amp;gt;/api/2.0/preview/dlt'
&amp;nbsp;
table_name = 'my_table'
retry_on_failure = True
&amp;nbsp;
# Set up the request data
request_data = {
    'table_name': table_name,
    'retry_on_failure': retry_on_failure
}
&amp;nbsp;
# Set up the request headers
headers = {
    'Authorization': f'Bearer {api_token}',
    'Content-Type': 'application/json'
}
&amp;nbsp;
# Create the DLT
response = requests.post(endpoint + '/create', headers=headers, data=json.dumps(request_data))
&amp;nbsp;
# Check the response
if response.ok:
    print('DLT created successfully')
else:
    print('DLT creation failed with status code', response.status_code, response.text)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Similarly, you can update the retry_on_failure property of an existing DLT using the dlt.update API call.&lt;/P&gt;&lt;P&gt;Here's an example of how you can update the retry_on_failure property of an existing DLT:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import requests
import json
&amp;nbsp;
api_token = '&amp;lt;YOUR_API_TOKEN&amp;gt;'
endpoint = 'https://&amp;lt;YOUR_DATABRICKS_INSTANCE&amp;gt;/api/2.0/preview/dlt'
&amp;nbsp;
table_name = 'my_table'
retry_on_failure = True
&amp;nbsp;
# Set up the request data
request_data = {
    'table_name': table_name,
    'retry_on_failure': retry_on_failure
}
&amp;nbsp;
# Set up the request headers
headers = {
    'Authorization': f'Bearer {api_token}',
    'Content-Type': 'application/json'
}
&amp;nbsp;
# Update the DLT
response = requests.post(endpoint + '/update', headers=headers, data=json.dumps(request_data))
&amp;nbsp;
# Check the response
if response.ok:
    print('DLT updated successfully')
else:
    print('DLT update failed with status code', response.status_code, response.text)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Apr 2023 07:11:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-16T07:11:18Z</dc:date>
    <item>
      <title>Delta Live Tables - RETRY_ON_FAILURE</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-retry-on-failure/m-p/5926#M2189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to set it up the RETRY_ON_FAILURE property for DLTs through the API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not finding in the Docs (although it seems to exist in a response payload).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/delta-live-tables/api-guide.html" target="test_blank"&gt;https://docs.databricks.com/delta-live-tables/api-guide.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 07:31:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-retry-on-failure/m-p/5926#M2189</guid>
      <dc:creator>GuMart</dc:creator>
      <dc:date>2023-04-13T07:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Tables - RETRY_ON_FAILURE</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-retry-on-failure/m-p/5927#M2190</link>
      <description>&lt;P&gt;@Gustavo Martins​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;Yes, you can set the RETRY_ON_FAILURE property for a Delta Live Table (DLT) using the API. You can set the retry_on_failure parameter when creating or updating a DLT using the dlt.create or dlt.update API calls respectively. Here's an example of how you can set the  retry_on_failure property to true:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import requests
import json
&amp;nbsp;
api_token = '&amp;lt;YOUR_API_TOKEN&amp;gt;'
endpoint = 'https://&amp;lt;YOUR_DATABRICKS_INSTANCE&amp;gt;/api/2.0/preview/dlt'
&amp;nbsp;
table_name = 'my_table'
retry_on_failure = True
&amp;nbsp;
# Set up the request data
request_data = {
    'table_name': table_name,
    'retry_on_failure': retry_on_failure
}
&amp;nbsp;
# Set up the request headers
headers = {
    'Authorization': f'Bearer {api_token}',
    'Content-Type': 'application/json'
}
&amp;nbsp;
# Create the DLT
response = requests.post(endpoint + '/create', headers=headers, data=json.dumps(request_data))
&amp;nbsp;
# Check the response
if response.ok:
    print('DLT created successfully')
else:
    print('DLT creation failed with status code', response.status_code, response.text)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Similarly, you can update the retry_on_failure property of an existing DLT using the dlt.update API call.&lt;/P&gt;&lt;P&gt;Here's an example of how you can update the retry_on_failure property of an existing DLT:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import requests
import json
&amp;nbsp;
api_token = '&amp;lt;YOUR_API_TOKEN&amp;gt;'
endpoint = 'https://&amp;lt;YOUR_DATABRICKS_INSTANCE&amp;gt;/api/2.0/preview/dlt'
&amp;nbsp;
table_name = 'my_table'
retry_on_failure = True
&amp;nbsp;
# Set up the request data
request_data = {
    'table_name': table_name,
    'retry_on_failure': retry_on_failure
}
&amp;nbsp;
# Set up the request headers
headers = {
    'Authorization': f'Bearer {api_token}',
    'Content-Type': 'application/json'
}
&amp;nbsp;
# Update the DLT
response = requests.post(endpoint + '/update', headers=headers, data=json.dumps(request_data))
&amp;nbsp;
# Check the response
if response.ok:
    print('DLT updated successfully')
else:
    print('DLT update failed with status code', response.status_code, response.text)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 07:11:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-retry-on-failure/m-p/5927#M2190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-16T07:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Tables - RETRY_ON_FAILURE</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-retry-on-failure/m-p/5928#M2191</link>
      <description>&lt;P&gt;Hi @Suteja Kanuri​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for the quick and complete answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 05:58:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-retry-on-failure/m-p/5928#M2191</guid>
      <dc:creator>GuMart</dc:creator>
      <dc:date>2023-04-17T05:58:19Z</dc:date>
    </item>
  </channel>
</rss>

