zhuangchong opened a new pull request, #18732:
URL: https://github.com/apache/dolphinscheduler/pull/18732

   ## Summary
   
   - Offline the associated schedule immediately after a successful workflow 
version switch, reusing the same schedule-offline method as the normal workflow 
offline action.
   - Remove the associated Quartz job without waiting for the next scheduled 
trigger to detect the offline workflow.
   - Add a regression test verifying that successful version switching invokes 
schedule cleanup.
   
   Fixes #18731.
   
   ## Test plan
   
   - [x] Run `WorkflowDefinitionServiceTest`: 55 tests passed, with no failures 
or errors.
   - [x] Apply Spotless formatting and run `git diff --check`.
   - [ ] Verify in a running environment that switching an online workflow 
version immediately offlines its schedule and removes its Quartz job.
   
   Local test command (JDK 11):
   
   ```sh
   ./mvnw -pl dolphinscheduler-api -am test \
     -Dtest=WorkflowDefinitionServiceTest \
     -Dsurefire.failIfNoSpecifiedTests=false \
     -Djacoco.skip=true \
     -Dspotless.check.skip=true
   ```


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