create_job
- create_job(
endpoint: string,
request_encoding: string | undefined,
data: string,
data_str: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<CreateJobResponse>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, thenrequest_encodingmust 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, thenrequest_encodingmust be json. Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CreateJobResponse>
Promise<Types.CreateJobResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:6025
- endpoint: string
create_job_request
- create_job_request(
request: CreateJobRequest,
callback?: GPUdbCallback,
): Promise<CreateJobResponse>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
- request: CreateJobRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CreateJobResponse>
Promise<Types.CreateJobResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:5993
- request: CreateJobRequest
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.