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

Tracking: Add first-class results #6908

Merged
merged 20 commits into from
Oct 12, 2022
Merged

Tracking: Add first-class results #6908

merged 20 commits into from
Oct 12, 2022

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented Sep 21, 2022

Tracking branch for consolidation of result configuration changes.

Includes:

Related changes, but into main:

Planned:

  • Add option to reduce memory consumption

Future:

  • Ensure task run results persisted to local file systems on remote workers respect relative paths
  • Investigate storing results after return from the remote worker for task runs with local file systems

May fix:

Unblocks:

Closes issues:

@netlify
Copy link

netlify bot commented Sep 21, 2022

Deploy Preview for prefect-orion ready!

Name Link
🔨 Latest commit d454a52
🔍 Latest deploy log https://app.netlify.com/sites/prefect-orion/deploys/6346f62bd163c40009218abf
😎 Deploy Preview https://deploy-preview-6908--prefect-orion.netlify.app/concepts/results
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

zanieb and others added 16 commits October 12, 2022 10:40
* Move result method to client-specific state schema

* Fix import of `rules`

* Move `OrchestrationResult` to `schemas.responses` to fix circular imports

* Repair some imports in the test suite

* Update flow and task tests to use client-side schemas

* Fix tests; update `cls` addition to be backwards compatible

* Add backwards compatibility method with warning and test
…6899)

* Add pickle serializer from packagers

* Add Prefect JSON encoders/decoders

* Refactor custom json hooks and write tests

* Remove exception group reduce patch

This will likely be needed for pickling exceptions, but is not needed yet here

* Mark dumps/loads as abstract methods

* Add dumps/loads to satisfy ABC

* Add missing test files

* Add dumps/loads to satisfy ABC

* Rename test case variable

* Bump minimum pydantic version to get JSON serdes support

* Bump minimum typing_extensions version for solvable lower bounds

* Fix typo

Co-authored-by: Chris Pickett <chris.pickett@prefect.io>

Co-authored-by: Chris Pickett <chris.pickett@prefect.io>
* Move result method to client-specific state schema

* Fix import of `rules`

* Move `OrchestrationResult` to `schemas.responses` to fix circular imports

* Repair some imports in the test suite

* Update flow and task tests to use client-side schemas

* Fix tests; update `cls` addition to be backwards compatible

* Update server-side `State.data` to accept arbitrary JSON

* Add test
…6900)

* Consolidate `DataDocument` related handling into `deprecated` module

* Restore `blocks` file

* Fix DataDocument reference in postgres migration

* Remove `data` schema from docs

* Add deprecated import

* Fix missed postgres import

* Fix merge
Co-authored-by: Terrence Dorsey <terrence@prefect.io>
Co-authored-by: Bill Palombi <bill@prefect.io>
Co-authored-by: Terrence Dorsey <terrence@prefect.io>
Co-authored-by: Ville Parkkinen <ville.parkkinen@nordicmobiletrust.com>
# Conflicts:
#	.github/workflows/integration-tests.yaml
#	src/prefect/deployments.py
#	src/prefect/engine.py
# Conflicts:
#	src/prefect/blocks/core.py
#	src/prefect/deployments.py
@zanieb
Copy link
Contributor Author

zanieb commented Oct 12, 2022

I missed a few things with my rebase to get up to date with main but things should be passing now! Since each component of this was reviewed, I do not recommend reading through the whole thing.

@zanieb zanieb merged commit e440856 into main Oct 12, 2022
@zanieb zanieb deleted the feature/results branch October 12, 2022 17:32
@tibuch
Copy link

tibuch commented Oct 14, 2022

Thank you @madkinsz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
6 participants