sangkyoonnam commented on PR #931:
URL: https://github.com/apache/burr/pull/931#issuecomment-6111675107

   One constraint to add for the serialization-context option: it needs to make 
the configured store available to serializers and deserializers on executor 
workers. With `RayExecutor`, 
[`MapStates`](https://github.com/apache/burr/blob/7721710f0ee6f9c6f8a148d37941df550740d9cc/burr/core/parallelism.py#L272-L286)
 sends the parent context and tasks carrying the store to the workers, where 
[`SubGraphTask.run()`](https://github.com/apache/burr/blob/7721710f0ee6f9c6f8a148d37941df550740d9cc/burr/core/parallelism.py#L149-L159)
 builds and runs the child application, and configured adapters such as 
`SQLitePersister` and `LocalTrackingClient` serialize state there. My earlier 
Ray repro shows the current boto3-backed `S3ArtifactStore` failing at that 
boundary.
   
   Rebuilding the S3 client from retained construction settings is one option; 
injected clients would need an explicit policy when those settings aren't 
available. A focused test could configure the store once on the application, 
use store-dependent type and field serde on separate fields, and persist and 
reload child state on a Ray worker through `MapStates`, asserting that both 
serializers and deserializers receive the configured store and that reloading 
recovers the original values.
   
   Adapter-level `serde_kwargs` could carry the context: `SQLitePersister` and 
`LocalTrackingClient` already forward them through state serde in both 
directions, while `S3TrackingClient` currently omits them when serializing 
state. How the application passes the context down to its adapters would still 
need defining.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to