prefect server in zig
Zig 81.3%
Shell 4.8%
Just 0.6%
Dockerfile 0.2%
Other 13.1%
41 1 0

Clone this repository

https://tangled.org/zzstoatzz.io/prefect-server https://tangled.org/did:plc:xbtmt2zjwlrfegqvch7fboei/prefect-server
git@tangled.org:zzstoatzz.io/prefect-server git@tangled.org:did:plc:xbtmt2zjwlrfegqvch7fboei/prefect-server

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

prefect-server#

zig implementation of prefect server - single binary, ~5x faster than python.

what works#

  • flow/flow_run/task_run lifecycle
  • blocks (types, schemas, documents)
  • variables
  • events (websocket ingest, persistence, broadcast with backfill)
  • dual database backends (sqlite, postgres)
  • dual message brokers (memory, redis)

see ROADMAP.md for detailed implementation status.

usage#

just --list        # show available commands
just dev           # build and run with debug logging
just bench-compare # benchmark against python server

requires zig 0.15 and just.

configuration#

env var default description
PREFECT_SERVER_PORT 4200 server port
PREFECT_DATABASE_BACKEND sqlite sqlite or postgres
PREFECT_BROKER_BACKEND memory memory or redis
PREFECT_SERVER_LOGGING_LEVEL INFO DEBUG, INFO, WARNING, ERROR

see docs/ for backend configuration details.