PCM/app/slurm/slurmTianhe/rpc/pb/slurmTianhe.proto

71 lines
3.0 KiB
Protocol Buffer

syntax = "proto3";
package slurmTianhe;
option go_package = "/slurmTianhe";
/******************Job(DB) Start*************************/
message historyJob{
uint32 alloc_cpu = 1; // @gotags: copier:"AllocCPU"
uint32 alloc_nodes = 2; // @gotags: copier:"AllocNodes"
string account = 3; // @gotags: copier:"Account"
uint32 associd = 4; // @gotags: copier:"AssocId"
string blockid = 5; // @gotags: copier:"BlockId"
string cluster = 6; // @gotags: copier:"Cluster"
uint32 derived_ec = 7; // @gotags: copier:"DerivedEc"
string derived_es = 8; // @gotags: copier:"DerivedEs"
uint32 elapsed = 9; // @gotags: copier:"Elapsed"
int64 eligible = 10;// @gotags: copier:"Eligible"
int64 end = 11;// @gotags: copier:"End"
uint32 exitcode = 12;// @gotags: copier:"ExitCode"
uint32 gid = 13;// @gotags: copier:"Gid"
uint32 jobid = 14;// @gotags: copier:"JobId"
string jobname = 15;// @gotags: copier:"JobName"
uint32 lft = 16;// @gotags: copier:"Lft"
string partition = 17;// @gotags: copier:"Partition"
string nodes = 18;// @gotags: copier:"Nodes"
uint32 priority = 19;// @gotags: copier:"Priority"
uint32 qosid = 20;// @gotags: copier:"Qosid"
uint32 req_cpus = 21;// @gotags: copier:"ReqCpus"
uint32 req_mem = 22;// @gotags: copier:"ReqMem"
uint32 requid = 23;// @gotags: copier:"Requid"
uint32 resvid = 24;// @gotags: copier:"Resvid"
uint32 show_full = 25;// @gotags: copier:"ShowFull"
int64 start = 26;// @gotags: copier:"Start"
uint32 state = 27;// @gotags: copier:"State"
int64 submit = 28;// @gotags: copier:"Submit"
uint32 suspended = 29;// @gotags: copier:"Suspended"
uint32 sys_cpu_sec = 30;// @gotags: copier:"SysCpuSec"
uint32 sys_cpu_usec = 31;// @gotags: copier:"SysCpuUsec"
uint32 timelimit = 32;// @gotags: copier:"Timelimit"
uint32 tot_cpu_sec = 33;// @gotags: copier:"TotCpuSec"
uint32 tot_cpu_usec = 34;// @gotags: copier:"TotCpuUsec"
uint32 track_steps = 35;// @gotags: copier:"TrackSteps"
uint32 uid = 36;// @gotags: copier:"Uid"
string user = 37;// @gotags: copier:"User"
uint32 user_cpu_sec = 38;// @gotags: copier:"UserCpuSec"
uint32 user_cpu_usec = 39;// @gotags: copier:"UserCpuUsec"
string wckey = 40;// @gotags: copier:"Wckey"
uint32 wckeyid = 41;// @gotags: copier:"Wckeyid"
}
message ListHistoryJobReq{
}
message ListHistoryJobResp{
uint32 code = 1; // @gotags: copier:"Code"
string msg = 2; // @gotags: copier:"Msg"
uint32 record_count = 3; // @gotags: copier:"RecordCount"
repeated historyJob history_jobs = 4; // @gotags: copier:"HistoryJobs"
}
/******************Job(DB) End*************************/
// Slurm Services for Shuguang Branch
service slurmTianhe {
//ListHistoryJob list all jobs from slurmdb
rpc ListHistoryJob(ListHistoryJobReq) returns (ListHistoryJobResp);
}