Skip to content

Adding new endpoint to flask app without killing existing processes #4700

Answered by davidism
jayh-aa asked this question in Q&A
Discussion options

You must be logged in to vote

You can't do that, it's not how routes are supposed to work. Instead, create routes (or a route with a variable part) ahead of time, and use a database, the session, redis, etc. to track information about what should be happening at any given time. For example, when accessing the first route, check that a flag hasn't been set, and when accessing the second check that it has.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jayh-aa
Comment options

Answer selected by jayh-aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants