Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Adapter to aid in debugging issues #762

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

skrawcz
Copy link
Collaborator

@skrawcz skrawcz commented Mar 16, 2024

WIP - showing how to capture data to enable someone to debug a function easily.

Changes

How I tested this

Notes

Checklist

  • PR has an informative and human-readable title (this will be pulled into the release notes)
  • Changes are limited to a single goal (no scope creep)
  • Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future TODOs are captured in comments
  • Project documentation has been updated if adding/changing functionality.

@skrawcz skrawcz force-pushed the feat_error_debug branch 3 times, most recently from 8362e90 to ebad47e Compare March 16, 2024 23:35


class NotebookErrorDebugger(lifecycle.NodeExecutionHook):

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: add path/directory to save these to.

@@ -265,6 +277,7 @@ def post_node_execute(
task_id=task_id,
success=success,
run_id=run_id,
originating_function=node_.originating_functions[0],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: change name.
TODO: Do we want to pass in all originating functions?

@skrawcz skrawcz closed this Mar 25, 2024
@skrawcz skrawcz deleted the feat_error_debug branch March 25, 2024 22:10
@skrawcz skrawcz restored the feat_error_debug branch March 25, 2024 22:10
@skrawcz skrawcz reopened this Mar 25, 2024
@skrawcz skrawcz changed the title Feat error debug WIP: Adapter to aid in debugging issues Mar 25, 2024
Proof of concept.

TODOs:
 - python dependency logging
 - creating a notebook version of this
 - tests
 - extensions would be to serialize things more effectively
Proof of concept.

TODOs:
 - python dependency logging
 - creating a notebook version of this
 - tests
 - extensions would be to serialize things more effectively
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant