Nikhil Joseph
02/12/2024, 4:44 PMMarvin
02/12/2024, 4:47 PMprefect config set PREFECT_API_DATABASE_CONNECTION_URL="postgresql://<username>:<password>@<host>:<port>/<database>"
- Start the Prefect server which will now use your PostgreSQL database:
prefect server start
Keep in mind, direct database interactions bypass the Prefect client and can potentially lead to issues if you're not careful with database schemas and migrations. Prefect uses Alembic for managing database migrations, and any direct database modifications should be compatible with Prefect's migration policies.
You can read more about this on the Prefect documentation. Make sure you understand the database schema and any potential impacts of your queries or changes, as this can affect how Prefect operates.