Skip to content
Snippets Groups Projects
Select Git revision
  • 2fb8420b0ade42f185ebb9ea0e38e25cf2006cfb
  • master default protected
  • v1.23.2
  • v1.23.1
  • v1.23.0
  • v1.22.0
  • v1.21.1
  • v1.21.0
  • v1.20.3
  • v1.20.2
  • v1.20.1
  • v1.20.0
  • v1.19.4
  • v1.19.3
  • v1.19.2
  • v1.19.1
  • v1.19.0
  • v1.18.2
  • v1.18.1
  • v1.18.0
  • v1.17.0
  • v1.16.1
22 results

job-log.go

Blame
  • Volker Schukai's avatar
    d14a74cc
    History
    job-log.go 666 B
    package jobqueue
    
    import (
    	"time"
    )
    
    type JobLog struct {
    	ProcessID     int       `json:"process_id"`
    	StartTime     time.Time `json:"start_time"`
    	EndTime       time.Time `json:"end_time"`
    	ExitCode      int       `json:"exit_code"`
    	Result        any       `json:"output"`
    	ResourceUsage struct {
    		Memory uint64 `json:"memory"`
    		CPU    struct {
    			Percentage float64 `json:"percentage"`
    		} `json:"cpu"`
    	} `json:"resource_usage"`
    	IO struct {
    		Disk    int64 `json:"disk"`
    		Network int64 `json:"network"`
    	} `json:"io"`
    	ErrorMsg     string `json:"error_msg"`
    	IsSuccessful bool   `json:"is_successful"`
    	//Metadata     map[string]string `json:"metadata"`
    }