MCPcopy
hub / github.com/promptfoo/promptfoo / update

Method update

src/server/services/evalJobService.ts:93–101  ·  view source on GitHub ↗
(id: string, updateJob: (job: Job) => void)

Source from the content-addressed store, hash-verified

91 }
92
93 private update(id: string, updateJob: (job: Job) => void): boolean {
94 const job = this.jobs.get(id);
95 if (!job) {
96 return false;
97 }
98
99 updateJob(job);
100 return true;
101 }
102}
103
104export const evalJobService = new EvalJobService();

Callers 15

setProgressMethod · 0.95
completeMethod · 0.95
failMethod · 0.95
appendLogMethod · 0.95
eval.test.tsFile · 0.45
setIsRedteamFunction · 0.45
hashBytesForCacheKeyFunction · 0.45

Calls 1

getMethod · 0.45

Tested by 2

setIsRedteamFunction · 0.36