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

   ### What changes were proposed in this PR?
   - `AmberRuntime.scheduleCallThroughActorSystem` and 
`scheduleRecurringCallThroughActorSystem` now return 
`Cancellable.alreadyCancelled` and log a warning when `_actorSystem` is null, 
instead of dereferencing a null scheduler and throwing a `NullPointerException`.
   - Added `AmberRuntimeScheduleSpec`, pinning both helpers to return an 
already-cancelled handle when the runtime is not started.
   ### Any related issues, documentation, discussions?
   Closes: #9152
   ### How was this PR tested?
   - Run `sbt "WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.common.AmberRuntimeScheduleSpec"`, expect 2 
passing tests (both helpers return an already-cancelled handle, no 
NullPointerException).
   - Local run used JDK 21 to avoid an unrelated JaCoCo/JDK-25 instrumentation 
issue on the dev machine; CI exercises the same spec under JDK 17.
   ### Was this PR authored or co-authored using generative AI tooling?
   Co-authored with Claude Opus 4.8 in compliance with ASF
   


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