Skip to content

Conversation

@cosmicBboy
Copy link
Contributor

@cosmicBboy cosmicBboy commented Jun 13, 2025

Why are the changes needed?

Currently, registering tasks, workflows, and launchplans via notebooks doesn't work. This is because uploading the pickle-serialized task functions only happens in the execute_local_* methods.

What changes were proposed in this pull request?

How was this patch tested?

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Summary by Bito

This pull request enhances the registration process for tasks, workflows, and launch plans by introducing serialization of task functions in interactive mode. It prevents duplicate workflows, improving workflow management, and adds a caching mechanism for optimized retrieval of pickled target dictionaries. Additionally, it resolves previous issues with notebook-based task registration.

cosmicBboy and others added 2 commits June 13, 2025 15:41
Signed-off-by: Niels Bantilan <[email protected]>
* updates

* makes sense now

Signed-off-by: Yee Hing Tong <[email protected]>

---------

Signed-off-by: Yee Hing Tong <[email protected]>
@cosmicBboy cosmicBboy changed the title [wip] enable notebook registration enable notebook task/workflow registration Jun 23, 2025
@codecov
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

Attention: Patch coverage is 17.39130% with 19 lines in your changes missing coverage. Please review.

Project coverage is 76.06%. Comparing base (3c6b61d) to head (04af7e4).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
flytekit/remote/remote.py 17.39% 14 Missing and 5 partials ⚠️

❗ There is a different number of reports uploaded between BASE (3c6b61d) and HEAD (04af7e4). Click for more details.

HEAD has 36 uploads less than BASE
Flag BASE (3c6b61d) HEAD (04af7e4)
41 5
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3275      +/-   ##
==========================================
- Coverage   83.35%   76.06%   -7.30%     
==========================================
  Files         347      215     -132     
  Lines       28791    22528    -6263     
  Branches     2960     2964       +4     
==========================================
- Hits        23999    17135    -6864     
- Misses       3956     4519     +563     
- Partials      836      874      +38     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cosmicBboy cosmicBboy merged commit b8bd210 into master Jun 24, 2025
114 of 117 checks passed
Atharva1723 pushed a commit to Atharva1723/flytekit that referenced this pull request Oct 5, 2025
* [wip] enable notebook registration

Signed-off-by: Niels Bantilan <[email protected]>

* lint

Signed-off-by: Niels Bantilan <[email protected]>

* updates (flyteorg#3276)

* updates

* makes sense now

Signed-off-by: Yee Hing Tong <[email protected]>

---------

Signed-off-by: Yee Hing Tong <[email protected]>

---------

Signed-off-by: Niels Bantilan <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Co-authored-by: Yee Hing Tong <[email protected]>
Signed-off-by: Atharva <[email protected]>
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.

3 participants