.
// cancel a WU:
// - mark unsent results as OVER, outcome DIDNT_NEED
// - set CANCELLED bit in WU error mask
//
require_once("../inc/db.inc");
require_once("../inc/util_ops.inc");
admin_page_head("Cancel WU");
db_init();
$wuid1 = $_GET['wuid1'];
$wuid2 = $_GET['wuid2'];
if ($wuid1<1 || $wuid2<$wuid1) {
echo "
Workunit IDs fail to satisfy the conditions:
1 <= WU1 ($wuid1) <= WU2 ($wuid2)
Unable to process request to cancel workunits.
";
exit();
}
echo "CANCELLING workunits $wuid1 to $wuid2 inclusive....
";
if (cancel_wu($wuid1, $wuid2)) {
echo "Failed in";
} else {
echo "Success in";
}
echo " cancelling workunits $wuid1 <= WUID <= $wuid2
";
admin_page_tail();
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
?>