s

    Stefan

    1 month ago
    Total beginner question: When you start the 'prefect orion' server.. what do you guys use to make sure it restarts if it crashes, stays running after the terminal is closed, starts on boot etc?
    Khuyen Tran

    Khuyen Tran

    1 month ago
    Prefect Orion server will shut down if your terminal is closed. However, you can add
    &
    to the command to run on the background such as:
    prefect orion start &
    The alternative is to use Prefect Cloud, which allows you to access Prefect UI on the cloud
    Cole Murray

    Cole Murray

    1 month ago
    Depending on your setup, there is a few common options for running a generic service (orion server in this case) A. Systemd - You’ll create a systemd service, specify some configuration. Systemd will handle restarting the service on crash, starting it on boot, keeping logs via journalctl etc. If not running in docker, this is likely your best bet. B. Docker - Docker will do the same as above, restarting the container on crash etc. C. Cron + supervisord - Similar to systemd, you’ll use cron to start the server “@reboot /bin/supervisord”. Superivsord will handle restarts, logs etc.