Skip to content

[Serve] Make Ray Serve compatible with Pydantic 1.10.x #39864

@shrekris-anyscale

Description

@shrekris-anyscale

What happened + What you expected to happen

Currently, Ray's cloudpickle cannot serialize Pydantic dataclasses in Pydantic 1.10.x. However, it can serialize them in Pydantic 1.9.2.

Ray's cloudpickle logic should be updated to successfully serialize Pydantic dataclasses. This test should succeed.

Versions / Dependencies

Ray on the latest master. Pydantic 1.10.x.

Reproduction script

See test_serialize_serve_dataclass.

Issue Severity

High: It blocks me from completing my task.

Metadata

Metadata

Labels

P1Issue that should be fixed within a few weeksbugSomething that is supposed to be working; but isn'tserveRay Serve Related Issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions