Part of the [[Distillery Master]] The `distillery_master.py` script uses configuration variables loaded from the `config/config.json` file and environment variables. Here are the configuration variables ```python CONFIG = json.load(open('config/config.json')) APP_NAME = CONFIG['APP_NAME'] SECONDS_PER_TICK = CONFIG['SECONDS_PER_TICK'] MAX_GENERATIONQUEUE_POP_COUNT = int(CONFIG['MAX_GENERATIONQUEUE_POP_COUNT']) SECONDS_PER_TICK_MULTIPLIER_PER_POP_COUNT = int(CONFIG['SECONDS_PER_TICK_MULTIPLIER_PER_POP_COUNT']) RUNPOD_KEY = os.getenv('RUNPOD_API_KEY') INSTANCE_IDENTIFIER = APP_NAME + '-' + str(uuid.uuid4()) RUNPOD_TIMEOUT = int(CONFIG['RUNPOD_TIMEOUT']) runpod.api_key = RUNPOD_KEY MAX_RUNPOD_ATTEMPTS = 2 generationqueue_pop_counter = 0 ``` - `CONFIG`: Loaded from the `config/config.json` file, contains various configuration settings. - `APP_NAME`: The name of the application. - `SECONDS_PER_TICK`: The number of seconds between each tick of the main loop. - `MAX_GENERATIONQUEUE_POP_COUNT`: The maximum number of requests to pop from the GenerationQueue at any given time. - `SECONDS_PER_TICK_MULTIPLIER_PER_POP_COUNT`: The multiplier for `SECONDS_PER_TICK` for each request popped from the [[GenerationQueue]]. - `RUNPOD_KEY`: The API key for the [[RunPod]] service, fetched from an environment variable. - `INSTANCE_IDENTIFIER`: A unique identifier for the current instance of the Distillery Master. - `RUNPOD_TIMEOUT`: The timeout value for [[RunPod]] API calls. - `MAX_RUNPOD_ATTEMPTS`: The maximum number of attempts to call the [[RunPod]] API. - `generationqueue_pop_counter`: A counter for the number of requests popped from the [[GenerationQueue]]. These configuration variables provide flexibility and customization options for the Distillery Master component, allowing adjustments to the behavior and performance of the system.