Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a maintenance mode for running application #511

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ckaipf
Copy link
Contributor

@ckaipf ckaipf commented Feb 16, 2023

This PR wants to add

  • a tween which temporarily redirects all requests to 503
  • state is implemented by the presence of local file
  • if file is present maintenance mode is off, if file is absent maintenance mode is on
    • an argument for this implementation was that it can provide a sanity check for the underlying file system, e.g. file lost due to non mounted file system
  • also added excludable routes, idea behind this is the implementation of administrative endpoints to toggle mode

a temp redirect of all requests
depends on existance of local file
@ckaipf ckaipf changed the title add a tween for maintenance mode Add a maintenance mode for running application Feb 16, 2023
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.

1 participant