File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ import z from "zod";
33import { AgentCreateWorkloadError , AgentRequestError } from "#/common/errors" ;
44import type { MetalInstanceEntity } from "#/metal-instance/metal-instance.entity" ;
55import type { DockerCredentials } from "#/workload/workload.dto" ;
6- import type { WorkloadEntity } from "#/workload/workload.entity" ;
6+ import type {
7+ WorkloadEntity ,
8+ WorkloadHearbeat ,
9+ } from "#/workload/workload.entity" ;
710
811const ALLOWED_CREATE_WORKLOAD_ERRORS : string [ ] = [
912 "DOCKER_COMPOSE" ,
@@ -104,6 +107,7 @@ export class DefaultNilccAgentClient implements NilccAgentClient {
104107 gpus : workload . gpus ,
105108 diskSpaceGb : workload . disk ,
106109 domain,
110+ heartbeat : workload . heartbeat ,
107111 } ;
108112 try {
109113 await this . post ( url , request , metalInstance ) ;
@@ -288,6 +292,7 @@ type CreateWorkloadRequest = {
288292 gpus : number ;
289293 diskSpaceGb : number ;
290294 domain : string ;
295+ heartbeat ?: WorkloadHearbeat ;
291296} ;
292297
293298type ActionRequest = {
You can’t perform that action at this time.
0 commit comments