def METHOD_NAME():
    """
    Service jobs in an infinite loop
    """
    get_engine().dispose()
    t = create_prometheus_server(job_process_registry, 8001)
    try:
        while True:
            # if no job was found, sleep for a second, otherwise query for another job straight away
            if not process_job():
                sleep(1)
    finally:
        logger.info(f"Closing prometheus server")
        t.server_close()