Skip to content

Add fastify.isUnderPressure()#199

Merged
mcollina merged 1 commit intomasterfrom
add-is-under-pressure
Jul 11, 2023
Merged

Add fastify.isUnderPressure()#199
mcollina merged 1 commit intomasterfrom
add-is-under-pressure

Conversation

@mcollina
Copy link
Copy Markdown
Member

This PR adds a decorated function to check if the current application is under pressure. This will allow applications to skip complex computations in that case (and possibly return an error).

Checklist

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina mcollina requested review from Uzlopak and zekth July 11, 2023 10:07
Copy link
Copy Markdown
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants