fix front end issues
This commit is contained in:
parent
177cf45af5
commit
d7afd72e5b
18 changed files with 345 additions and 61 deletions
|
|
@ -266,6 +266,27 @@ func handleNotifyData(nd *C.xce_notify_data_t) C.int {
|
|||
return 0
|
||||
}
|
||||
switch nd.event {
|
||||
case C.NotifyData_data_updateJob:
|
||||
jp := (*C.xce_job_t)(C.xce_notify_data_ptr(nd))
|
||||
if jp == nil {
|
||||
return 0
|
||||
}
|
||||
gHandler.OnJobUpdated(cJobToModel(jp))
|
||||
|
||||
case C.NotifyData_data_jobFinishInfo:
|
||||
fi := (*C.xce_jobfinish_t)(C.xce_notify_data_ptr(nd))
|
||||
if fi == nil {
|
||||
return 0
|
||||
}
|
||||
gHandler.OnJobFinished(uint64(fi.jobid), int(fi.exit_code))
|
||||
|
||||
case C.NotifyData_data_jobFailInfo:
|
||||
ff := (*C.job_failinfo_t)(C.xce_notify_data_ptr(nd))
|
||||
if ff == nil {
|
||||
return 0
|
||||
}
|
||||
gHandler.OnJobFinished(uint64(ff.jobid), int(ff.code))
|
||||
|
||||
case C.NotifyData_data_schedUpdateResvals:
|
||||
rvl := (*C.xce_resval_list_t)(C.xce_notify_data_ptr(nd))
|
||||
if rvl == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue