rs_workflows/operation/init_quota_monitoring_flow.md¶
Create the Prefect flow to setup the quota monitoring database
create_schema(db_url)
¶
Creates all database tables defined in the quota_moniotirng_db_models.
This task initializes the database schema for the Quota Monitoring database using the provided SQLAlchemy engine.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
engine
|
Engine
|
SQLAlchemy database engine connected to the target database. |
required |
Source code in docs/rs-client-libraries/rs_workflows/operation/init_quota_monitoring_flow.py
init_quota_monitoring_database(env=FlowEnvArgs(owner_id='operator-quota'))
async
¶
Initializes the Quota Monitoring database schema.
This Prefect flow
- Creates all required tables for the Quota Monitoring database.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
FlowEnvArgs
|
Prefect flow environment configuration, including runtime context variables. |
FlowEnvArgs(owner_id='operator-quota')
|
Environment Variables Required
POSTGRES_QUOTA_USER: PostgreSQL username for quota database POSTGRES_QUOTA_PASSWORD: PostgreSQL password POSTGRES_HOST (str): PostgreSQL host address. POSTGRES_PORT (str): PostgreSQL port.