Skip to content

__init__()

Class: JobsAustriaCacheSynchronizer
File: jobs_austria_cache_synchronizer.py ยท line 32

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)