-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for prefect-orion ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
3 tasks
zanieb
changed the title
Tracking: Add result configuration
Tracking: Add first-class results
Sep 22, 2022
This was referenced Sep 27, 2022
zanieb
force-pushed
the
feature/results
branch
from
September 28, 2022 15:08
8bdfa22
to
8ca3c83
Compare
3 tasks
zanieb
force-pushed
the
feature/results
branch
from
October 6, 2022 04:09
fa694c4
to
d3e0a11
Compare
* 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
force-pushed
the
feature/results
branch
from
October 12, 2022 15:45
053bfe2
to
859aa58
Compare
zanieb
requested review from
anticorrelator,
tpdorsey,
cicdw and
zangell44
as code owners
October 12, 2022 15:45
I missed a few things with my rebase to get up to date with |
tpdorsey
approved these changes
Oct 12, 2022
Thank you @madkinsz! |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tracking branch for consolidation of result configuration changes.
Includes:
prefect.client.schemas
and client-side state type #6895JSONSerializer
andPickleSerializer
toprefect.serializers
#6899State.data
to accept arbitrary JSON #6896DataDocument
related handling intodeprecated
module #6900prefect.result
types and utilities #6973PickleSerializer
and add tests #7044State.result()
#7071task_input_hash
#7048State
types intoprefect.states
#7108Related changes, but into
main
:Optional
and default #6829copy_model_fields
utility for action schemas #6813OrionClient
during block registration, save, and load #6857sync_compatible
#7073Planned:
Future:
May fix:
ValueError: Path /root/.prefect/storage/...
does not exist #6086Unblocks:
Closes issues:
FileNotFoundError: [Errno 2] No such file or directory: '/.prefect/storage'
with agent started as non-root user #6040