Adds Nats-Schedule-Rollup to schedules#391
Conversation
Signed-off-by: R.I.Pienaar <rip@devco.net>
|
A bit non ideal since we can't detect this is happening on older servers, so maybe we should also add a thing where we check |
We do already strip |
Ok so we just silently fail for now? We have no idea how long feature flags work will take, and then we would have to check them anyway right? Getting the check into 2.12.x might help? |
We could add detection of unknown NATS headers in nats-io/nats-server#7454. There we scan through all the headers and could error if we see an unknown suffix. But that's currently also reserved for 2.14, although we could perhaps backport if we'd like. |
not sure we can back port all the things there but yeah looking at the schedule code I can see how handling it there is a pain, will think |
|
Should we also add support for a |
Yes we could do that, but it would be quite limited right since dupe windows tend to be short - I mean for the use case where the user would want to publish earlier it would be quite limiting to be only able to do so in the dupe window, and this might insentivise users to make very long dupe windows which might not be an ideal outcome |
|
Thinking a bit more on that.. the use case of being able to 'end' a schedule early is valuable. Especially in the case where you want to ensure that ending the schedule early still guarantees no duplicate messages on the target subject. However, I agree now solving this with deduplication isn't the right way. It becomes confusing even for an Instead was thinking combining these two already existing headers to achieve this use case:
The combination of those, since schedules are purged based on the
What are your thoughts around formalizing that behavior? |
Relates to nats-io/nats-server#7557