Skip to content

feat(config): add poke strategy - #54

Open
ngoc-minh-do wants to merge 1 commit into
sablierapp:mainfrom
ngoc-minh-do:feat/poke-strategy
Open

feat(config): add poke strategy#54
ngoc-minh-do wants to merge 1 commit into
sablierapp:mainfrom
ngoc-minh-do:feat/poke-strategy

Conversation

@ngoc-minh-do

Copy link
Copy Markdown

What

Adds the poke strategy — a new GET /api/strategies/poke endpoint that starts instances and immediately returns X-Sablier-Session-Status: ready, skipping the health check. The reverse proxy passes the request through without blocking or showing a waiting page.

Useful when you want instances started but don't need them healthy before serving traffic — background workers, sidecar caches, companion processes the caller doesn't depend on.

Usage

GET /api/strategies/poke?group=myapp&session_duration=30m

Plugin config examples (separate PRs in each plugin repo):

# Traefik
plugin:
  sablier:
    group: myapp
    poke: {}
# Caddy
sablier {
    group mygroup
    poke
}
// Proxy-WASM
{ "group": "mygroup", "poke": {} }

@ngoc-minh-do
ngoc-minh-do requested a review from acouvreur as a code owner July 10, 2026 22:47
@thisispr

Copy link
Copy Markdown

@acouvreur & @ngoc-minh-do after merging sablierapp/sablier#1015, this one should be reviewed and mergerd aswell.

@acouvreur

Copy link
Copy Markdown
Member

I'm wondering how we could properly create a compatibility matrix between sablier and its plugins. In that case consuming a new feature from 1.17.0

Otherwise, users may have errors with something unsupported

@ngoc-minh-do

Copy link
Copy Markdown
Author

do you mean by docs or by runtime enforcement? Currently, Sablier does not expose its version over HTTP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants