From 314ba22cc28515c4ff43a138bb07ebfc73c5f986 Mon Sep 17 00:00:00 2001 From: Matt Lebofsky Date: Wed, 27 Oct 2004 21:04:15 +0000 Subject: [PATCH] added always_run functionality svn path=/trunk/boinc/; revision=4446 --- sched/start | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sched/start b/sched/start index 8bfbf19c55..342c1f0aa4 100755 --- a/sched/start +++ b/sched/start @@ -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: