[Python] Run a function once on bottle.py startup

Discussão em 'Python' iniciado por Stack, Setembro 18, 2025.

  1. Stack

    Stack Membro Participativo

    I have a bottle app that I eventually wan't to deploy on apache (just fyi in case that's important). Now I need to run a function once after the bottle app is started. I can't just put it into a routed function because it has to run even if no user has accessed the site yet.

    Any best pratice to do this ?

    The function starts a APScheduler Instance and adds a jobstore to it.

    Continue reading...

Compartilhe esta Página