MCPcopy
hub / github.com/promptfoo/promptfoo / setProgress

Method setProgress

src/server/services/evalJobService.ts:57–62  ·  view source on GitHub ↗
(id: string, progress: number, total: number)

Source from the content-addressed store, hash-verified

55 }
56
57 setProgress(id: string, progress: number, total: number): boolean {
58 return this.update(id, (job) => {
59 job.progress = progress;
60 job.total = total;
61 });
62 }
63
64 complete(id: string, result: Job['result'], evalId: string | null): boolean {
65 return this.update(id, (job) => {

Callers 2

eval.tsFile · 0.80

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected