aglinxinyuan opened a new pull request, #4768:
URL: https://github.com/apache/texera/pull/4768

   ### What changes were proposed in this PR?
   
   Add `WorkerExecutionSpec` covering update semantics and port-execution 
allocation in `WorkerExecution`:
   
   - Default state is `UNINITIALIZED` with zeroed stats
   - `update(state)` only applies when the timestamp is strictly newer
   - `update(state, stats)` updates both atomically when newer; ignores stale 
timestamps
   - `update(stats)` updates only the stats portion
   - `getInputPortExecution` / `getOutputPortExecution` lazily create and reuse 
a single instance per port id, with separate input vs output namespaces
   
   ### Any related issues, documentation, discussions?
   
   Closes #4767
   
   ### How was this PR tested?
   
   `sbt "WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.architecture.deploysemantics.layer.WorkerExecutionSpec"`
 — 9/9 tests pass.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 4.7)


-- 
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