@ultipa-graph/ultipa-driver
Version:
NodeJS SDK for ultipa-server 5.2
33 lines (32 loc) • 1.11 kB
TypeScript
import { ConnectionBase } from "./connection.base";
import { Job, Process, RequestConfig, Response } from "../../types/types";
export declare class JobExra extends ConnectionBase {
/**
* Show all job,if have id,return job
*/
showJob(id?: string, config?: RequestConfig): Promise<Job[]>;
/**
* Clean job by id
*/
clearJob(id: string, config?: RequestConfig): Promise<Response>;
/**
* pause job by id
*/
pauseJob(id?: string, config?: RequestConfig): Promise<Response>;
/**
* resume job by id
*/
resumeJob(id?: string, config?: RequestConfig): Promise<Response>;
/**
* stop job by id
*/
stopJob(id: string, config?: RequestConfig): Promise<Response>;
/**
* Retrieves all running and stopping processes from the instance.
*/
top(config?: RequestConfig): Promise<Process[]>;
/**
* Kills running processes in the instance. If no process id is specified, all processes will be killed.
*/
kill(processId: string, config?: RequestConfig): Promise<Response>;
}