Celery Beat Producers
Developers can set up and run the OpenG2P Registry Celery Beat Producers on their local machines. The Beat Producers schedule periodic registry jobs and enqueue them onto the Celery worker queue.
Prerequisites
Python3
Git
PostgreSQL
Redis
Celery
Installation of Celery Beat Producers
1. Update system packages
Log in to your Linux server using SSH and update the package list and upgrade the existing packages:
sudo apt update
sudo apt upgrade -y2. Install dependencies
sudo apt install -y python3-pip python3-dev python3-venv build-essential libpq-dev3. Install and configure PostgreSQL
The Registry uses PostgreSQL as the database engine. Install PostgreSQL (if not already installed) and create a new database user and database.
4. Install and configure Redis
Redis is used as the Celery broker and result backend.
5. Clone the Registry Celery Repository
6. Install Python Libraries and Run Celery Beat
Create a new Python virtual environment:
Activate the virtual environment:
Install required Python packages:
Create a
.envfile:
Start Redis server (if not already running):
Run Celery Beat:
Verifying the Installation
The terminal logs should show the beat scheduler ticking at the configured frequencies and tasks being dispatched onto the registry_worker_queue queue.
Last updated
Was this helpful?