Preventing Task Plans From Running
This page is for data modellers, application designers and system administrators. It explains how to stop task plans running during system maintenance.
Overview
During upgrade and maintenance, you may want to run your PhixFlow instance whilst preventing task plans from running. There are two options you can use to achieve this:
- Prevent users starting task plans and other actions, seeĀ Restricting Access During System Maintenance.Ā This depends on user permissions.
- Prevent scheduled task plans from starting.Ā
Disabling Scheduled Task Plans
You can disable scheduled task plans:
- from within PhixFlow, using theĀ System Configuration āĀ Advanced āĀ Disable Scheduled TasksĀ
- without logginging into PhixFlow, using theĀ
server.properties
Ā fileĀdisableScheduledTasks=falseĀ
option.
Only disable scheduled task plans if it is essential.Ā Restore scheduled task plans to being able to run as soon as possible.Ā
Task plans doĀ not run retrospectively when the option is cleared. You must manually start any tasks plans that missed their scheduled start time.
From Within PhixFlow
To disable all scheduled task plans, in system configuration tick Disable Scheduled Tasks.Ā As long as this option is ticked scheduled task plans will not start. Scheduled task plans that are already running are not affected.
To allow scheduled task plans to run again, untickĀ Disable Scheduled Tasks.
Before Restarting PhixFlow
To disable all scheduled task plans:
- Edit the fileĀ
tomcat\webapps\<phixflow installation directory>\WEB-INF\classes\server.properties
Ā - Set
disableScheduledTasks=true
- Restart PhixFlow.Ā
- Disable Scheduled Tasks is automatically ticked.
- Scheduled task plans do not run.
Setting server.propertiesĀ disableScheduledTasks=true
Ā whilst PhixFlow is running has no effect. PhixFlow must be restarted.Ā Once PhixFlow is running, it uses Disable Scheduled TasksĀ to decide whether or not to run scheduled task plans.Ā
To allow task plans to run again:
- Set theĀ
server.properties
Ā fileĀdisableScheduledTasks=false
You must do this because:- clearing theĀ Disable Scheduled Tasks check box does not change the setting in
server.properties
file - the next time the server restarts, scheduled task plans will run as normal.Ā
- clearing theĀ Disable Scheduled Tasks check box does not change the setting in
- Log into PhixFlow.
- InĀ system configuration untick Disable Scheduled Tasks.Ā
This restarts the scheduled task plans.
SettingĀ disableScheduledTasks=false
then restarting the server does not untickĀ Disable Scheduled Tasks.