Skip to content

Add a maintenance mode for running application#511

Open
ckaipf wants to merge 1 commit intodevelopfrom
add-maintenance-mode
Open

Add a maintenance mode for running application#511
ckaipf wants to merge 1 commit intodevelopfrom
add-maintenance-mode

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