def use_12_hour_heartbeat(connection, server_proposal):
    """
    Configures a Rabbit connection to use a 12-hour heartbeat interval.

    If a task takes longer than the heartbeat interval, then the rabbit server
    will kill the connection, since the worker doesn't use a background thread
    to acknowledge heartbeats - it just runs THOR until complete.

    The default is 60s, which is much too low - THOR tasks that are longer would
    always result in inability to communicate with Rabbit.

    We could disable heartbeats entirely, but then the Rabbit server would hold
    lots of broken TCP connections whenever workers exit.

    12 hours is longer than tasks should take, but still finite, so the server
    won't build up garbage.

    This function conforms to Pika's API for setting a heartbeat, which is why
    it takes a connection and server proposal, which it ignores.
    """
    return 12 * 60 * 60