feat: migrate vertex_builds to sql database (#2978)

* feat: migrate vertex_builds to sql database

* [autofix.ci] apply automated fixes

* name

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Nicolò Boschi 2024-07-29 16:58:19 +02:00 • committed by GitHub
commit c7575b18df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 219 additions and 193 deletions

View file

@ -985,16 +985,11 @@ export async function downloadImage({ flowId, fileName }): Promise<any> {
export async function getFlowPool({
flowId,
nodeId,
}: {
flowId: string;
nodeId?: string;
}): Promise<AxiosResponse<{ vertex_builds: FlowPoolType }>> {
const config = {};
config["params"] = { flow_id: flowId };
if (nodeId) {
config["params"] = { nodeId };
}
return await api.get(`${BASE_URL_API}monitor/builds`, config);
}