Skip to content

Commit f49c28c

Browse files
authored
Update jobsApiClient.ts
1 parent 6b25c7e commit f49c28c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/jobs/jobsApiClient.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,13 @@ export default abstract class JobsApiClient {
5454
* @throws {MindsDbError} - Something went wrong while dropping the job.
5555
*/
5656
abstract dropJob(name: string, project: string): Promise<void>;
57+
58+
/**
59+
* Lists all jobs from MindsDB.
60+
* @param {string} name - Name of the job.
61+
* @param {string} project - Project the job belongs to.
62+
* @returns {Promise<void>} - Resolves after all the jobs are listed.
63+
* @throws {MindsDbError} - Something went wrong while listing the job.
64+
*/
65+
abstract list(name?: string, project?: string): Promise<Array<Job>>;
5766
}

0 commit comments

Comments
 (0)