<?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: Is it possible to have customized task parameter variables in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-customized-task-parameter-variables/m-p/6967#M2964</link>
    <description>&lt;P&gt;@Yanan Zhang​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the documentation you shared, Databricks Task parameter variables are used to parameterize notebook tasks in a Databricks workspace. These variables are used to pass values from the parent notebook to the child notebook that is being executed as a task. However, it appears that Databricks currently only supports a predefined set of whitelisted Task parameter variables, and it does not explicitly mention support for custom variables.&lt;/P&gt;&lt;P&gt;The whitelisted Task parameter variables that are currently supported in Databricks include:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;{{task_id}}: The unique identifier of the task.&lt;/LI&gt;&lt;LI&gt;{{task_run_number}}: The number of times the task has been run.&lt;/LI&gt;&lt;LI&gt;{{task_run_id}}: The unique identifier of the current task run.&lt;/LI&gt;&lt;LI&gt;{{task_retry_number}}: The number of times the task has been retried.&lt;/LI&gt;&lt;LI&gt;{{task_max_retries}}: The maximum number of retries allowed for the task.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These variables can be used in notebook cells or in the notebook parameters to dynamically pass values during the execution of notebook tasks.&lt;/P&gt;&lt;P&gt;If you need to use custom variables or parameters in your Databricks tasks, you may need to implement your own logic within the notebooks to handle these custom variables, such as passing them as input parameters or reading them from external sources like configuration files or environment variables. You can use standard Python or Scala code within the notebooks to handle these custom variables as needed.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 01:23:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-05T01:23:18Z</dc:date>
    <item>
      <title>Is it possible to have customized task parameter variables</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-customized-task-parameter-variables/m-p/6966#M2963</link>
      <description>&lt;P&gt;I found some &lt;A href="https://docs.databricks.com/workflows/jobs/jobs.html?_gl=1*paalo7*_gcl_aw*R0NMLjE2NzkzMzA2ODYuQ2p3S0NBandpT0NnQmhBZ0Vpd0FqdjV3aENJTzMzQlRsSE5vZWpBUnVEU3hWMGx1RC0zUExqd194S3dDaXpRU1hnMzI4Ri1vUVQ3OGN4b0NKTVlRQXZEX0J3RQ..&amp;amp;_ga=2.67481617.1492280226.1679941569-45feea20-8f83-471c-ba10-67d8c9594e8f&amp;amp;_gac=1.261304063.1679330688.CjwKCAjwiOCgBhAgEiwAjv5whCIO33BTlHNoejARuDSxV0luD-3PLjw_xKwCizQSXg328F-oQT78cxoCJMYQAvD_BwE#id4" alt="https://docs.databricks.com/workflows/jobs/jobs.html?_gl=1*paalo7*_gcl_aw*R0NMLjE2NzkzMzA2ODYuQ2p3S0NBandpT0NnQmhBZ0Vpd0FqdjV3aENJTzMzQlRsSE5vZWpBUnVEU3hWMGx1RC0zUExqd194S3dDaXpRU1hnMzI4Ri1vUVQ3OGN4b0NKTVlRQXZEX0J3RQ..&amp;amp;_ga=2.67481617.1492280226.1679941569-45feea20-8f83-471c-ba10-67d8c9594e8f&amp;amp;_gac=1.261304063.1679330688.CjwKCAjwiOCgBhAgEiwAjv5whCIO33BTlHNoejARuDSxV0luD-3PLjw_xKwCizQSXg328F-oQT78cxoCJMYQAvD_BwE#id4" target="_blank"&gt;Task parameter variables&lt;/A&gt; in this document, &lt;A href="https://community.databricks.com/s/feed/0D58Y0000A7AUWhSQO" target="test_blank"&gt;https://community.databricks.com/s/feed/0D58Y0000A7AUWhSQO&lt;/A&gt;. Sounds like it will be much flexible with double curly braces for Task parameter variables. However, from the documentation, seems only a whitelisted variables are supported. Is it possible to have customized (i.e. created by myself) task variables?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 23:14:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-customized-task-parameter-variables/m-p/6966#M2963</guid>
      <dc:creator>yzhang</dc:creator>
      <dc:date>2023-03-27T23:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to have customized task parameter variables</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-customized-task-parameter-variables/m-p/6967#M2964</link>
      <description>&lt;P&gt;@Yanan Zhang​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the documentation you shared, Databricks Task parameter variables are used to parameterize notebook tasks in a Databricks workspace. These variables are used to pass values from the parent notebook to the child notebook that is being executed as a task. However, it appears that Databricks currently only supports a predefined set of whitelisted Task parameter variables, and it does not explicitly mention support for custom variables.&lt;/P&gt;&lt;P&gt;The whitelisted Task parameter variables that are currently supported in Databricks include:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;{{task_id}}: The unique identifier of the task.&lt;/LI&gt;&lt;LI&gt;{{task_run_number}}: The number of times the task has been run.&lt;/LI&gt;&lt;LI&gt;{{task_run_id}}: The unique identifier of the current task run.&lt;/LI&gt;&lt;LI&gt;{{task_retry_number}}: The number of times the task has been retried.&lt;/LI&gt;&lt;LI&gt;{{task_max_retries}}: The maximum number of retries allowed for the task.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These variables can be used in notebook cells or in the notebook parameters to dynamically pass values during the execution of notebook tasks.&lt;/P&gt;&lt;P&gt;If you need to use custom variables or parameters in your Databricks tasks, you may need to implement your own logic within the notebooks to handle these custom variables, such as passing them as input parameters or reading them from external sources like configuration files or environment variables. You can use standard Python or Scala code within the notebooks to handle these custom variables as needed.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 01:23:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-customized-task-parameter-variables/m-p/6967#M2964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-05T01:23:18Z</dc:date>
    </item>
  </channel>
</rss>

