Commit 0569855d authored by Leigh Stoller's avatar Leigh Stoller

Batch and Preload are no longer mutually exclusive; I made those

changes to the backend a while ago, but the form changes never got
made cause of the ongoing delay in the new form commit. So, you can
preload a batch experiment now.
parent 51833023
......@@ -535,16 +535,6 @@ if (!isset($formfields[exp_autoswap]) ||
}
}
#
# Preload and Batch are mutually exclusive.
#
if (isset($formfields[exp_batched]) &&
!strcmp($formfields[exp_batched], "Yep") &&
isset($formfields[exp_preload]) &&
!strcmp($formfields[exp_preload], "Yep")) {
$errors["Do Not Swap In"] = "Cannot use with Batch Mode";
}
# None of the above errors count during a syntax check
if (isset($syntax)) { $errors = array(); }
......@@ -783,16 +773,14 @@ if ($formfields[exp_idleswap] == "1") {
# All experiments are low priority for now.
#
$exp_priority = "-n low";
$exp_batched = 0;
$exp_preload = 0;
$batcharg = "-i";
if (isset($formfields[exp_batched]) &&
strcmp($formfields[exp_batched], "Yep") == 0) {
$exp_batched = 1;
$batcharg = "";
$exp_preload = 0;
}
else {
$exp_batched = 0;
$batcharg = "-i";
}
if (isset($formfields[exp_preload]) &&
strcmp($formfields[exp_preload], "Yep") == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment