Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run first extraction before starting webserver
It leaves less time for client to hit 503 error on startup, but more importantly, it deals with race condition in startup sequence: if extractor_task gets interrupted after webserver startup was initiated but before make_server() returned, then potoken_server.stop() becomes a no-op, leaving background task with webserver to run indefinitely.
- Loading branch information