Release the poll scheduler on halt so the channel can redeploy (fixes #571) #574
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.60) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 210 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.320
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #574"
general
weight: 0.35
pacmano1
Fixes #571.
Problem
After a polling channel is halted and undeployed, deploying it again on the same engine returns HTTP 500:
PollConnectorJobHandlercreates the Quartz scheduler withStdSchedulerFactoryand setsorg.quartz.scheduler.instanceNameto the channel ID. The factory keeps a running scheduler in itsSchedulerRepositoryunder that name until it is shut down.PollConnector.stop()shuts it down, buthalt()only callsscheduler.interrupt(job.getKey()). So after a halt, the next deploy'sfactory.getScheduler()gets the old scheduler back with the poll job still stored, andscheduleJobfails.Fix
halt()now also callsscheduler.shutdown(false)after interrupting the job.falsemeans it doesn't wait for the interrupted job to finish, so a halt stays immediate.stop()is unchanged.Tests
New
PollConnectorHaltTest:PollConnectoris started and halted, then a new connector for the same channel ID is started.The halt case fails without this change with the exact exception above. With it, both pass.
:donkey:testand:server:testare green.I haven't rerun the REST repro from the issue against a built engine. The unit test exercises the same start → halt → start path through the same
StdSchedulerFactoryrepository.