MCPcopy Create free account
hub / github.com/diffgram/diffgram / getJobStats

Function getJobStats

frontend/src/services/jobStatsServices.js:3–13  ·  view source on GitHub ↗
(job_id)

Source from the content-addressed store, hash-verified

1import axios from './customInstance'
2
3export const getJobStats = async (job_id) => {
4 try {
5 const { data } = await axios.get(`/api/job/${job_id}/stat`)
6 return data
7 } catch(e) {
8 return {
9 completed: 0,
10 total: 0
11 }
12 }
13}
14
15export const getJobStatsForUser = async (job_id, user_id) => {
16 try {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected