Skip to content

Environment Variables

RealZimboGuy edited this page Nov 19, 2025 · 2 revisions

GFlow Environment Variables

This document lists all the environment variables used by the GFlow engine along with their default values (if applicable).

Variable Description Default Value
GFLOW_DATABASE_TYPE The type of database to use. Possible values: POSTGRES, MYSQL, SQLLITE. (no default)
GFLOW_DATABASE_URL The database connection URL. for POSTGRES example postgresql://postgres:password@localhost:5432/workflow?sslmode=disable for MYSQL example mysql://workflow:password@tcp(localhost:3306)/workflow?parseTime=true (no default)
GFLOW_DATABASE_SQLLITE_FILE_NAME File path to the SQLite database file. ./gflow.db
GFLOW_ENGINE_SERVER_WEB_PORT Port on which the engine's web server listens. 8080
GFLOW_ENGINE_CHECK_DB_INTERVAL Interval at which the engine checks the database for new workflows. 3s
GFLOW_ENGINE_STUCK_WORKFLOWS_INTERVAL Interval at which the engine checks for stuck workflows. 60s
GFLOW_ENGINE_STUCK_WORKFLOWS_REPAIR_AFTER_MINUTES Minutes after which a stuck workflow should be considered for repair. 5
GFLOW_ENGINE_BATCH_SIZE Number of workflows to pull from the database at a time. 15
GFLOW_ENGINE_EXECUTOR_GROUP The executor group ID that this instance will process jobs from. default
GFLOW_ENGINE_EXECUTOR_SIZE Number of worker goroutines to run in parallel. 15
GFLOW_WEB_SESSION_EXPIRY_HOURS Number of hours before a web session expires. 1

Clone this wiki locally