• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nats-io / nats-server / 8043798207
83%

Build:
DEFAULT BRANCH: main
Ran 26 Feb 2024 05:20AM UTC
Jobs 1
Files 54
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Feb 2024 02:30AM UTC coverage: 85.245% (+0.003%) from 85.242%
8043798207

push

github

web-flow
Add support for pausing consumers (#5066)

This adds a new `pause_until` configuration option for pausing
consumers.

It can either be set when the consumer is created (but not via a
standard consumer update) or it can be changed later by using the new
`$JS.API.CONSUMER.PAUSE.*.*` API endpoint by sending:
```
{"pause_until": "2024-02-08T19:00:00Z"}
```

Any time that is in the past, or a zero timestamp, is considered as
"unpaused". Once the consumer reaches the `pause_until` time, messages
will start flowing again automatically.

The consumer info will additionally include `paused` (type `bool`) and,
if paused, a `pause_remaining` (type `time.Duration`) to report the
pause status.

Also adds `$JS.EVENT.ADVISORY.CONSUMER.PAUSE.*.*` advisory messages
which are sent when pausing and unpausing (i.e. reaching the pause
deadline).

Idle heartbeats continue to be sent while the consumer is paused to
satisfy liveness checks.

**Before merge:** nats-io/nats.go#1554 and `go.mod` updated.

Signed-off-by: Neil Twigg <neil@nats.io>

---------

Signed-off-by: Neil Twigg <neil@nats.io>

64203 of 75316 relevant lines covered (85.24%)

189112.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8043798207.1 26 Feb 2024 05:20AM UTC 0
85.24
GitHub Action Run
Source Files on build 8043798207
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8043798207
  • bb5a9593 on github
  • Prev Build on main (#8035572767)
  • Next Build on main (#8075385872)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc