mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-24 23:04:00 +08:00
exposing getjobcounts
This commit is contained in:
parent
06a2c91eee
commit
bb39afa753
1 changed files with 10 additions and 0 deletions
|
@ -41,6 +41,16 @@ export class MonkeyQueue<T> {
|
|||
await this.jobQueue.add(taskName, task, jobOpts);
|
||||
}
|
||||
|
||||
async getJobCounts(): Promise<{
|
||||
[index: string]: number;
|
||||
}> {
|
||||
if (!this.jobQueue) {
|
||||
return {};
|
||||
}
|
||||
|
||||
return await this.jobQueue.getJobCounts();
|
||||
}
|
||||
|
||||
async addBulk(
|
||||
tasks: { name: string; data: T; opts?: BulkJobOptions }[]
|
||||
): Promise<void> {
|
||||
|
|
Loading…
Reference in a new issue