From d4f3c4d07bfc1c5b7a0a3cc9695473ff031d699a Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Wed, 29 Mar 2023 06:47:19 +0200 Subject: [PATCH] Update job.go --- tools/archive-migration/job.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/archive-migration/job.go b/tools/archive-migration/job.go index c98f44c..883ea81 100644 --- a/tools/archive-migration/job.go +++ b/tools/archive-migration/job.go @@ -9,6 +9,8 @@ import ( "fmt" "io" "time" + + "github.com/ClusterCockpit/cc-backend/pkg/schema" ) // Non-Swaggered Comment: BaseJob @@ -32,7 +34,7 @@ type BaseJob struct { State JobState `json:"jobState" db:"job_state" example:"completed" enums:"completed,failed,cancelled,stopped,timeout,out_of_memory"` // Final state of job Duration int32 `json:"duration" db:"duration" example:"43200" minimum:"1"` // Duration of job in seconds (Min > 0) Walltime *int64 `json:"walltime" db:"walltime" example:"86400" minimum:"1"` // Requested walltime of job in seconds (Min > 0) - Tags []*schema.Tag `json:"tags"` // List of tags + Tags []*schema.Tag `json:"tags"` // List of tags RawResources []byte `json:"-" db:"resources"` // Resources used by job [As Bytes] Resources []*Resource `json:"resources"` // Resources used by job RawMetaData []byte `json:"-" db:"meta_data"` // Additional information about the job [As Bytes]