MCPcopy
hub / github.com/subquery/subql / deploymentStatus

Function deploymentStatus

packages/cli/src/controller/deploy-controller.ts:100–115  ·  view source on GitHub ↗
(
  org: string,
  projectName: string,
  authToken: string,
  deployID: number,
  url: string
)

Source from the content-addressed store, hash-verified

98}
99
100export async function deploymentStatus(
101 org: string,
102 projectName: string,
103 authToken: string,
104 deployID: number,
105 url: string
106): Promise<string> {
107 try {
108 const res = await getAxiosInstance(url, authToken).get<{status: string}>(
109 `subqueries/${buildProjectKey(org, projectName)}/deployments/${deployID}/status`
110 );
111 return `${res.data.status}`;
112 } catch (e) {
113 throw errorHandle(e, 'Failed to get deployment status:');
114 }
115}
116
117export async function projectsInfo(
118 authToken: string,

Callers 1

Calls 3

buildProjectKeyFunction · 0.90
errorHandleFunction · 0.90
getAxiosInstanceFunction · 0.85

Tested by

no test coverage detected