Setup
This guide describes the setup of the openaleph-procrastinate app.
Installation
Install openaleph-procrastinate with its requirements:
pip:
pip install openaleph-procrastinate
poetry:
poetry add openaleph-procrastinate
This will include all the required dependencies.
Configuration
Info
For local development or testing, set the environment variable DEBUG=1 to use an in-memory task backend instead of postgresql.
The OpenAleph settings are configured via environment vars via pydantic-settings.
For a full list of openaleph-procrastinate settings, refer to the settings reference.
Database
Set up the environment variable PROCRASTINATE_DB_URI which falls back to OPENALEPH_DB_URI (default: postgresql:///openaleph).
Initial database setup
opal-procrastinate init-db