Bharat Khaneja
01/31/2025, 8:32 PMfirst
Util Server -
I have installed Prefect on the server itself and Postgress is installed on the docker on the same server with persistent data volume... The systemd service is setup for prefect server here...
Also, i have nginx installed and reverese proxied the whole setup....
On my Second
server - where all my code/jobs are there -
I set up a systemd service for prefect worker (like below)
[Unit]
Description=Prefect Worker
After=network.target
[Service]
ExecStart=/usr/local/bin/prefect worker start --pool "cla-infra" --limit 10
Restart=always
User=root
Group=root
WorkingDirectory=/root/
StandardOutput=journal
StandardError=journal
Environment="PREFECT_API_AUTH_STRING=admin:password"
Environment="PREFECT_SERVER_API_AUTH_STRING=admin:password"
[Install]
WantedBy=multi-user.target
and then in my code folders, I manually go and run prefect deploy to deploy everything to Prefect server..Bharat Khaneja
01/31/2025, 8:33 PMBharat Khaneja
01/31/2025, 8:33 PMBianca Hoch
02/03/2025, 4:19 PM