added always_run functionality

svn path=/trunk/boinc/; revision=4446
This commit is contained in:
Matt Lebofsky 2004-10-27 21:04:15 +00:00
parent 051249189e
commit 314ba22cc2
1 changed files with 9 additions and 2 deletions

View File

@ -424,7 +424,11 @@ def run_tasks():
continue
if task.disabled:
continue
run_task(task)
if task.__dict__.get('always_run'):
run_task(task)
continue
if run_state.enabled:
run_task(task)
do_prune_run_states()
def prepare_run_state_pruning():
@ -504,11 +508,14 @@ def command_enable_start():
def command_cron_start():
if verbose: print "Verbose cron-start: status ==", (run_state.enabled and 'ENABLED' or 'DISABLED')
global verbose_daemon_run
if run_state.enabled:
global verbose_daemon_run
verbose_daemon_run = 1
run_daemons()
run_tasks()
else:
verbose_daemon_run = 1
run_tasks()
def command_disable_stop():
if verbose: