Skip to content

__init__()

Class: JobsAustriaCacheProcessRework
File: jobs_austria_cache_key_sync.py ยท line 21

Signature

Parameters none
Returns not annotated
Async No
Visibility Public

Implementation

def __init__(self):
    self.db_url = os.getenv("DATABASE_URL_JOBS_INTELLIGENCE_AUSTRIA_SYNC")
    if not self.db_url:
        raise ValueError("DATABASE_URL_JOBS_INTELLIGENCE_AUSTRIA_SYNC is not set.")
    self.engine = create_engine(self.db_url)