(queue_name: str)
return queue_name.partition(":")[2].partition(".")[0]
Extract the installation id from the queue names

    On restart we only have queue names, so we need to extract installation ids from the names.

    webhook:848733 -> 848733
    merge_queue:848733.chdsbd/kodiak/master -> 848733
Extract the installation id from the queue names
Extract the installation id from the queue names
def installation_id_from_queue(queue_name: str) -> str:
    """
    Extract the installation id from the queue names

    On restart we only have queue names, so we need to extract installation ids from the names.

    webhook:848733 -> 848733
    merge_queue:848733.chdsbd/kodiak/master -> 848733
    """
    return queue_name.partition(":")[2].partition(".")[0]
def installation_id_from_queue ( queue_name : str ) -> str : return queue_name . partition ( ":" ) [ 2 ] . partition ( "." ) [ 0 ]