(ctx, **kwargs)
\b
    - DESCRIPTION:
        Query job information by filters.
        Used to be 'query_job'.

    \b
    - USAGE:
        flow job query -r guest -p 9999 -s success
        flow job query -j $JOB_ID -cpn hetero_feature_binning_0
\b
    - DESCRIPTION:
        Query job information by filters.
        Used to be 'query_job'.
\ b - DESCRIPTION : Query job information by filters . Used to be query_job .
def query(ctx, **kwargs):
    """
    \b
    - DESCRIPTION:
        Query job information by filters.
        Used to be 'query_job'.

    \b
    - USAGE:
        flow job query -r guest -p 9999 -s success
        flow job query -j $JOB_ID -cpn hetero_feature_binning_0
    """
    config_data, dsl_data = preprocess(**kwargs)
    response = access_server('post', ctx, "job/query", config_data, False)
    if isinstance(response, requests.models.Response):
        response = response.json()
    if isinstance(response, flask.wrappers.Response):
        response = response.json
    if response['retcode'] == 0:
        for i in range(len(response['data'])):
            del response['data'][i]['f_runtime_conf']
            del response['data'][i]['f_dsl']
    prettify(response)
def query ( ctx , * * kwargs ) : config_data , dsl_data = preprocess ( * * kwargs ) response = access_server ( 'post' , ctx , "job/query" , config_data , False ) if isinstance ( response , requests . models . Response ) : response = response . json ( ) if isinstance ( response , flask . wrappers . Response ) : response = response . json if response [ 'retcode' ] == 0 : for i in range ( len ( response [ 'data' ] ) ) : del response [ 'data' ] [ i ] [ 'f_runtime_conf' ] del response [ 'data' ] [ i ] [ 'f_dsl' ] prettify ( response )