def _deposit_payload(to_deposit):
    """Store job info, and publish an update

    Parameters
    ----------
    to_deposit : dict
        The job info

    """
    pubsub = to_deposit['pubsub']
    id = to_deposit['id']

    with r_client.pipeline() as pipe:
        pipe.set(id, json.dumps(to_deposit), ex=REDIS_KEY_TIMEOUT)
        pipe.publish(pubsub, json.dumps({"update": [id]}))
        pipe.execute()