Skip to main content
  • Create a job which will run asynchronously. The response returns a job ID, which can be used to query the status and result of the job. The status and the result of the job upon completion can be requested by get_job.

    Parameters

    • endpoint: string

      Indicates which endpoint to execute, e.g. ‘/alter/table’.

    • request_encoding: string | undefined

      The encoding of the request payload for the job.

    • data: string

      Binary-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated in endpoint. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then request_encoding must be binary or snappy.

    • data_str: string

      JSON-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated in endpoint. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then request_encoding must be json.

    • Optionaloptions: Record<string, string>

      Optional parameters.

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<CreateJobResponse>

    Promise<Types.CreateJobResponse> - Promise resolving to the response

  • Create a job which will run asynchronously. The response returns a job ID, which can be used to query the status and result of the job. The status and the result of the job upon completion can be requested by get_job.

    Parameters

    Returns Promise<CreateJobResponse>

    Promise<Types.CreateJobResponse> - Promise resolving to the response