Cancel Schedule#46
Conversation
| */ | ||
| public static <T> T execute(RetryConfig config, RetryAction<T> action, RetryObserver observer) throws Exception { | ||
| long[] backoffPolicy = config.getBackoffPolicy();; | ||
| long[] backoffPolicy = config.getBackoffPolicy(); |
There was a problem hiding this comment.
This is unrelated housekeeping.
|
@claude please review in relation to ADR-51.md, section "Ending/stopping schedules early" https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-51.md#endingstopping-schedules-early |
|
Claude finished @scottf's task in 2m 5s —— View job Review: Cancel Schedule vs ADR-51 "Ending/stopping schedules early"
ADR-51 Spec Summary (Ending/Stopping Schedules Early)The spec defines two mechanisms: Basic termination: delete by stream sequence number, purge by exact subject, purge by wildcard subject pattern. Advanced atomic termination: publish to a different subject (not the schedule subject) while simultaneously stopping the schedule, using:
Hard constraint: server rejects with error Overall Conformance: ✅ CorrectThe implementation correctly covers all three basic termination modes and both atomic termination variants. One bug and a few observations below. Bug: Header Override Order in
|
|
All review comments have been addressed |
| js.publish(m); | ||
|
|
||
| m = new ScheduledMessageBuilder() | ||
| .scheduleSubject(SCHEDULE_PREFIX + "at") |
There was a problem hiding this comment.
Doesn't this overwrite the above message? Should these be + "every"?
No description provided.