mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=2989
This commit is contained in:
parent
fcf49ae836
commit
76aa070555
|
@ -10019,3 +10019,23 @@ David Feb 11 2004
|
|||
|
||||
client/
|
||||
cs_scheduler.C
|
||||
|
||||
David Feb 15 2004
|
||||
- make_project:
|
||||
use short hostname
|
||||
shorten instructions at end
|
||||
- add a sample project.xml
|
||||
- scheduler: write log debug msg when set result.outcome
|
||||
- setup_project.py:
|
||||
add copy of "create_work"
|
||||
make symbolic link of html/user_profile to itself
|
||||
|
||||
sched/
|
||||
handle_request.C
|
||||
tools/
|
||||
create_work.C
|
||||
project.xml (new)
|
||||
make_project
|
||||
py/Boinc/
|
||||
database.py
|
||||
setup_project.py
|
||||
|
|
|
@ -169,10 +169,6 @@ class Workunit(DatabaseObject):
|
|||
'name',
|
||||
'xml_doc',
|
||||
'batch',
|
||||
# 'rsc_fpops',
|
||||
# 'rsc_iops',
|
||||
# 'rsc_memory',
|
||||
# 'rsc_disk',
|
||||
'rsc_fpops_est',
|
||||
'rsc_fpops_bound',
|
||||
'rsc_memory_bound',
|
||||
|
@ -224,15 +220,6 @@ class Result(DatabaseObject):
|
|||
'teamid'
|
||||
])
|
||||
|
||||
class Workseq(DatabaseObject):
|
||||
_table = DatabaseTable(
|
||||
table = 'workseq',
|
||||
columns = [ 'create_time',
|
||||
'state',
|
||||
'hostid',
|
||||
'wuid_last_done',
|
||||
'wuid_last_sent',
|
||||
'workseqid_master' ])
|
||||
|
||||
def connect(config = None, nodb = False):
|
||||
"""Connect if not already connected, using config values."""
|
||||
|
|
|
@ -279,8 +279,7 @@ def install_boinc_files(dest_dir):
|
|||
map(lambda (s): install(srcdir('sched',s), dir('bin',s)),
|
||||
[ 'start', 'stop', 'status', 'grep_logs' ])
|
||||
map(lambda (s): install(srcdir('tools',s), dir('bin',s)),
|
||||
[ 'boinc_path_config.py', 'add', 'xadd', 'dbcheck_files_exist', 'update_versions',
|
||||
'upgrade' ])
|
||||
[ 'boinc_path_config.py', 'create_work', 'add', 'xadd', 'dbcheck_files_exist', 'update_versions', 'upgrade' ])
|
||||
|
||||
|
||||
class Project:
|
||||
|
@ -391,6 +390,7 @@ class Project:
|
|||
my_symlink('../forum', self.dir('html/user/forum'))
|
||||
my_symlink('../stats', self.dir('html/user/stats'))
|
||||
my_symlink('../user_profile', self.dir('html/user/user_profile'))
|
||||
my_symlink('../user_profile', self.dir('html/user_profile/user_profile'))
|
||||
|
||||
|
||||
# Copy the sched server in the cgi directory with the cgi names given
|
||||
|
|
|
@ -609,15 +609,21 @@ int handle_results(
|
|||
parse_int(result.stderr_out, "<app_version>", result.app_version_num);
|
||||
|
||||
// look for exit status in stderr_out
|
||||
// TODO: return separately
|
||||
// TODO: return it separately
|
||||
//
|
||||
parse_int(result.stderr_out, "<exit_status>", result.exit_status);
|
||||
|
||||
// Success can only be declared if all the result files have been successfully uploaded
|
||||
// and the client exit status returns 0
|
||||
if ( (result.client_state == RESULT_FILES_UPLOADED) && (0 == result.exit_status) ) {
|
||||
if ((result.client_state == RESULT_FILES_UPLOADED) && (result.exit_status == 0)) {
|
||||
result.outcome = RESULT_OUTCOME_SUCCESS;
|
||||
log_messages.printf(SchedMessages::DEBUG,
|
||||
"[RESULT#%d %s]: setting outcome SUCCESS\n",
|
||||
result.id, result.name
|
||||
);
|
||||
} else {
|
||||
log_messages.printf(SchedMessages::DEBUG,
|
||||
"[RESULT#%d %s]: client_state %d exit_status %d; setting outcome ERROR\n",
|
||||
result.id, result.name, result.client_state, result.exit_status
|
||||
);
|
||||
result.outcome = RESULT_OUTCOME_CLIENT_ERROR;
|
||||
result.validate_state = VALIDATE_STATE_INVALID;
|
||||
}
|
||||
|
|
|
@ -45,9 +45,7 @@
|
|||
//
|
||||
// Create a workunit and results.
|
||||
// Input files must be in the download dir.
|
||||
// template-doc is an XML WU description file, with the following macros:
|
||||
// INFILEn gets replaced by the name of input file n
|
||||
// MD5n gets replaced by the MD5 checksum of input file n
|
||||
// template-doc is an XML WU description file
|
||||
//
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -10,7 +10,7 @@ import sys, os, getopt, re, socket
|
|||
|
||||
def gethostname():
|
||||
try:
|
||||
return socket.gethostbyaddr(socket.gethostname())[0]
|
||||
return socket.gethostname()
|
||||
except:
|
||||
return 'localhost'
|
||||
|
||||
|
@ -279,20 +279,7 @@ To start, show status, stop BOINC daemons run:
|
|||
Master URL: %(html_user_url)s
|
||||
Administration URL: %(html_ops_url)s
|
||||
|
||||
Tasks to do:
|
||||
|
||||
1. Add platform(s)
|
||||
%(proot)s/bin/add platform --name=c64 --user_f="Commodore 64"
|
||||
%(proot)s/bin/add platform --name=i686-pc-linux-gnu --user_f="Linux x86"
|
||||
|
||||
2. Add application(s)
|
||||
%(proot)s/bin/add app --name=SpaghettiAtHome
|
||||
|
||||
3. Add core client and application binaries
|
||||
|
||||
3a. Place compiled clients in %(proot)s/apps/boinc/ and %(proot)s/apps/APP/
|
||||
3b. Run %(proot)s/bin/update_versions
|
||||
|
||||
4. Generate work : read documentation at http://boinc.berkeley.edu/
|
||||
Further steps are necessary to add applications and work.
|
||||
See the online documentation at http://boinc.berkeley.edu/
|
||||
|
||||
'''%locals()
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
<boinc>
|
||||
<platform>
|
||||
<name>i686-pc-linux-gnu</name>
|
||||
<user_friendly_name>Linux/x86</user_friendly_name>
|
||||
</platform>
|
||||
<platform>
|
||||
<name>windows_intelx86</name>
|
||||
<user_friendly_name>Windows/x86</user_friendly_name>
|
||||
</platform>
|
||||
<platform>
|
||||
<name>powerpc-apple-darwin</name>
|
||||
<user_friendly_name>Mac OS X</user_friendly_name>
|
||||
</platform>
|
||||
<platform>
|
||||
<name>anonymous</name>
|
||||
<user_friendly_name>anonymous</user_friendly_name>
|
||||
</platform>
|
||||
<application>
|
||||
<name>setiathome</name>
|
||||
<user_friendly_name>SETI@home</user_friendly_name>
|
||||
</application>
|
||||
</boinc>
|
Loading…
Reference in New Issue