2004-11-14 00:42:02 +00:00
< ? php
2008-08-05 22:43:14 +00:00
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// BOINC is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
2004-11-14 00:55:27 +00:00
// use this to delete workunits that are not wanted
2004-11-14 00:42:02 +00:00
require_once ( " ../inc/util_ops.inc " );
2013-07-30 21:07:34 +00:00
admin_page_head ( " Cancel jobs " );
2005-02-08 04:38:31 +00:00
echo " <form action= \" cancel_wu_action.php \" >
2004-11-14 00:42:02 +00:00
" ;
2005-02-08 04:38:31 +00:00
echo " <p>
2013-07-30 21:07:34 +00:00
We recommend that you stop the project before canceling jobs .
< p >
Canceled jobs are not removed from the database .
2009-09-15 18:14:37 +00:00
Instead , they are marked as 'no longer needed' .
2013-07-30 21:07:34 +00:00
< p >
2009-09-15 18:14:37 +00:00
< p >
2004-11-14 00:42:02 +00:00
" ;
// TODO: David, a query that shows all workunits that do not have all results unsent is:
// select distinct workunit.id,workunit.name from workunit join result where workunit.id=result.workunitid and result.server_state!=2 order by workunit.id
// What is the inverse of this query? Ie select all workunits all of whose results are unsent. This would
// be useful to incorporate into this page.
start_table ();
2013-07-30 21:07:34 +00:00
row2 ( " Workunit ID of first job to cancel " , " <input size= \" 32 \" name= \" wuid1 \" " );
row2 ( " Workunit ID of last job to cancel " , " <input size= \" 32 \" name= \" wuid2 \" " );
row2 (
" Cancel only jobs with no instance in progress
2014-10-02 19:15:54 +00:00
< br >< p class = \ " text-muted \" >
2013-07-30 21:07:34 +00:00
You can cancel jobs with instances that are in progress ,
but if you do so , users will not get credit for these instances .
2014-10-02 19:15:54 +00:00
</ p >
2013-07-30 21:07:34 +00:00
" ,
" <input type=checkbox name=unsent_only> "
);
2014-10-02 19:15:54 +00:00
row2 ( " " , " <input class= \" btn btn-default \" type= \" submit \" value= \" Cancel jobs \" > " );
2005-02-08 04:38:31 +00:00
end_table ();
2004-11-14 00:42:02 +00:00
echo "
</ form >
" ;
2005-02-08 04:38:31 +00:00
admin_page_tail ();
2008-08-05 22:43:14 +00:00
$cvs_version_tracker [] = " \$ Id $ " ; //Generated automatically - do not edit
2004-11-14 00:42:02 +00:00
?>