add scheduler middleware

This commit is contained in:
Jakub Miazek
2024-10-16 15:32:32 +02:00
parent 171a8019f7
commit a63c3e2a43
2 changed files with 11 additions and 8 deletions

View File

@@ -77,5 +77,5 @@ app.add_middleware(SchedulerMiddleware, scheduler=_scheduler_himself)
# TODO: every not GET meth should reset cache
# TODO: every scheduler task which needs to act on database hsould have access to connection pool via request
# TODO: every scheduler task which needs to act on database should have access to connection pool via request - maybe ?
# TODO: https://stackoverflow.com/questions/16053364/make-sure-only-one-worker-launches-the-apscheduler-event-in-a-pyramid-web-app-ru