databricks - Debugging a workflow - Stack Overflow

How do you guys debug a workflow in databricks? Notebooks now have integrated debugging tooling, but ho

How do you guys debug a workflow in databricks? Notebooks now have integrated debugging tooling, but how do you debug the Notebook the workflow is calling with parameters etc? Can I make a test notebook that call the notebook with parameters like the workflow, and somehow debug into my notebook, or how are you in general getting a debugging experience with breakpoints in a notebook that is called from a workflow?

How do you guys debug a workflow in databricks? Notebooks now have integrated debugging tooling, but how do you debug the Notebook the workflow is calling with parameters etc? Can I make a test notebook that call the notebook with parameters like the workflow, and somehow debug into my notebook, or how are you in general getting a debugging experience with breakpoints in a notebook that is called from a workflow?

Share Improve this question asked Nov 18, 2024 at 11:10 Thomas SegatoThomas Segato 5,30716 gold badges67 silver badges132 bronze badges 2
  • Could you please provide your approach, if you have tried anything? – Bhavani Commented Nov 18, 2024 at 11:15
  • Well I have not found any ways to get a breakpoint in a workflow it self. So I was thinking whether I could make a debug notebook that call the working notebook with same parameters as the workflow. I tried with %run "./debug-tester-nb" dbutils.notebook.run("debug-tester-nb", 60, {"Key1": "data", "Key2": "data2"}). And then I hoped I could do a step into with debugger, but did not work. I need some way to be able to call a notebook in the same way as the workflow do and get a full debug developer experience. – Thomas Segato Commented Nov 18, 2024 at 11:20
Add a comment  | 

1 Answer 1

Reset to default 1

Currently, the debugging the workflows is not supported. To debug the workflow, you can make use of the notebook debugger as a workaround, but you need to do this process manually.

After the workflow run, take the failed code block and use another notebook cell and use the notebook debugger here.

If you are using any workflow parameters in that code, you can make use of the notebook widgets in place of those workflow parameters and pass the required values to the widgets as shown in below sample.

print("hi")
# Define widget
dbutils.widgets.text("param1","")
# use it as workflow parameter
print(dbutils.widgets.get("param1"))
print("bye")

You can set the default value as well like below.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745622737a4636620.html

相关推荐

  • databricks - Debugging a workflow - Stack Overflow

    How do you guys debug a workflow in databricks? Notebooks now have integrated debugging tooling, but ho

    3小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信