Skip to content

Commit

Permalink
Update jobsApiClient.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Better-Boy authored Nov 9, 2024
1 parent 6b25c7e commit f49c28c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/jobs/jobsApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,13 @@ export default abstract class JobsApiClient {
* @throws {MindsDbError} - Something went wrong while dropping the job.
*/
abstract dropJob(name: string, project: string): Promise<void>;

/**
* Lists all jobs from MindsDB.
* @param {string} name - Name of the job.
* @param {string} project - Project the job belongs to.
* @returns {Promise<void>} - Resolves after all the jobs are listed.
* @throws {MindsDbError} - Something went wrong while listing the job.
*/
abstract list(name?: string, project?: string): Promise<Array<Job>>;
}

0 comments on commit f49c28c

Please sign in to comment.