def check_for_running_sfn(session, arn):
    """Check if a downsample step function already running

    Args:
        session (boto3.session):
        arn (str): Step function arn

    Returns:
        (bool)
    """
    client = session.client('stepfunctions')
    resp = client.list_executions(stateMachineArn=arn, statusFilter='RUNNING', maxResults=1)
    return 'executions' in resp and len(resp['executions']) > 0