import time from pyinfra.config.loader import load_settings, parse_args from pyinfra.examples import start_queue_consumer_with_prometheus_and_health_endpoints def processor_mock(_data: dict, _message: dict) -> dict: time.sleep(5) return {"result1": "result1"} if __name__ == "__main__": settings = load_settings(parse_args().settings_path) start_queue_consumer_with_prometheus_and_health_endpoints(processor_mock, settings)