def execution(base_url: str, execution_id: str=None) ->str:
    """
    Build the URL for a journal to be pushed to.
    """
    if not execution_id:
        return '/'.join([base_url, 'executions'])
    return '/'.join([base_url, 'executions', execution_id])
