mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
hatchet init db
This commit is contained in:
@@ -69,6 +69,7 @@ services:
|
|||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:17
|
image: postgres:17
|
||||||
|
command: postgres -c 'max_connections=200'
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
environment:
|
environment:
|
||||||
@@ -77,21 +78,9 @@ services:
|
|||||||
POSTGRES_DB: reflector
|
POSTGRES_DB: reflector
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/postgres:/var/lib/postgresql/data
|
- ./data/postgres:/var/lib/postgresql/data
|
||||||
|
- ./server/docker/init-hatchet-db.sql:/docker-entrypoint-initdb.d/init-hatchet-db.sql:ro
|
||||||
hatchet-postgres:
|
|
||||||
image: postgres:15.6
|
|
||||||
command: postgres -c 'max_connections=200'
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
- POSTGRES_USER=hatchet
|
|
||||||
- POSTGRES_PASSWORD=hatchet
|
|
||||||
- POSTGRES_DB=hatchet
|
|
||||||
ports:
|
|
||||||
- "5436:5432"
|
|
||||||
volumes:
|
|
||||||
- ./data/hatchet-postgres:/var/lib/postgresql/data
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -d hatchet -U hatchet"]
|
test: ["CMD-SHELL", "pg_isready -d reflector -U reflector"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
@@ -103,10 +92,10 @@ services:
|
|||||||
- "8889:8888"
|
- "8889:8888"
|
||||||
- "7078:7077"
|
- "7078:7077"
|
||||||
depends_on:
|
depends_on:
|
||||||
hatchet-postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: "postgresql://hatchet:hatchet@hatchet-postgres:5432/hatchet?sslmode=disable"
|
DATABASE_URL: "postgresql://reflector:reflector@postgres:5432/hatchet?sslmode=disable"
|
||||||
SERVER_AUTH_COOKIE_DOMAIN: localhost
|
SERVER_AUTH_COOKIE_DOMAIN: localhost
|
||||||
SERVER_AUTH_COOKIE_INSECURE: "t"
|
SERVER_AUTH_COOKIE_INSECURE: "t"
|
||||||
SERVER_GRPC_BIND_ADDRESS: "0.0.0.0"
|
SERVER_GRPC_BIND_ADDRESS: "0.0.0.0"
|
||||||
|
|||||||
@@ -53,6 +53,16 @@ response = sqs.receive_message(QueueUrl=queue_url, ...)
|
|||||||
uv run /app/requeue_uploaded_file.py TRANSCRIPT_ID
|
uv run /app/requeue_uploaded_file.py TRANSCRIPT_ID
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Hatchet Setup (Fresh DB)
|
||||||
|
|
||||||
|
After resetting the Hatchet database:
|
||||||
|
|
||||||
|
1. Create API token at http://localhost:8889 → Settings → API Tokens
|
||||||
|
2. Update `server/.env`: `HATCHET_CLIENT_TOKEN=<new-token>`
|
||||||
|
3. Restart: `docker compose restart server hatchet-worker`
|
||||||
|
|
||||||
|
Workflows register automatically when hatchet-worker starts.
|
||||||
|
|
||||||
## Pipeline Management
|
## Pipeline Management
|
||||||
|
|
||||||
### Continue stuck pipeline from final summaries (identify_participants) step:
|
### Continue stuck pipeline from final summaries (identify_participants) step:
|
||||||
|
|||||||
2
server/docker/init-hatchet-db.sql
Normal file
2
server/docker/init-hatchet-db.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
-- Create hatchet database for Hatchet workflow engine
|
||||||
|
CREATE DATABASE hatchet;
|
||||||
Reference in New Issue
Block a user