mirror of https://github.com/BOINC/boinc.git
remove job submission: fixes to query_batch()
This commit is contained in:
parent
5b56a414cf
commit
2b6eff91f6
|
@ -551,15 +551,19 @@ function show_job_details($wu) {
|
|||
if ($wu->error_mask && $r->outcome == RESULT_OUTCOME_CLIENT_ERROR) {
|
||||
echo " <exit_status>$r->exit_status</exit_status>\n";
|
||||
}
|
||||
if ($r->id == $wu->canonical_resultid) {
|
||||
echo " <cpu_time>$r->cpu_time</cpu_time>\n";
|
||||
}
|
||||
}
|
||||
if ($wu->error_mask) {
|
||||
echo " <status>error</status>\n";
|
||||
return;
|
||||
}
|
||||
|
||||
if ($wu->canonical_resultid) {
|
||||
echo " <status>done</status>\n";
|
||||
} else {
|
||||
if ($in_progress) {
|
||||
if ($in_progress > 0) {
|
||||
echo " <status>in_progress</status>\n";
|
||||
} else {
|
||||
echo " <status>queued</status>\n";
|
||||
|
@ -593,7 +597,6 @@ function query_batch($r) {
|
|||
}
|
||||
|
||||
$wus = BoincWorkunit::enum("batch = $batch->id", "order by id");
|
||||
if (count($wus) > 0) {
|
||||
$batch = get_batch_params($batch, $wus);
|
||||
$get_cpu_time = (int)($r->get_cpu_time);
|
||||
$get_job_details = (int)($r->get_job_details);
|
||||
|
@ -616,9 +619,6 @@ function query_batch($r) {
|
|||
}
|
||||
echo " </job>\n";
|
||||
}
|
||||
} else {
|
||||
echo "<nojobs>no jobs found</nojobs>\n";
|
||||
}
|
||||
echo "</query_batch>\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -190,5 +190,5 @@ def test_get_output_files():
|
|||
r = get_output_files(req)
|
||||
print(r)
|
||||
|
||||
test_query_batch(326)
|
||||
#test_submit_batch('batch_30')
|
||||
test_query_batch(328)
|
||||
#test_submit_batch('batch_31')
|
||||
|
|
Loading…
Reference in New Issue