Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Shankar Selvam
Shankar SelvamReporter
Poorna Chandra
Poorna ChandraComponents
Fix versions
Priority
Created March 10, 2017 at 12:25 AM
Updated August 29, 2018 at 12:18 AM
Resolved April 14, 2017 at 3:37 AM
Now that allows managing schedules outside of an application, we will need to define the behavior when the schedules are managed outside of an application and then the application gets redeployed.
The current behavior on an application redeployment is to bring the existing schedules in line with what is defined in the new version of the application. Any new schedules in the new version of the application are created, schedules not in the new version are deleted and schedules that are changed in the new version are updated.
However in the scenario where a system admin is managing the schedules for an application outside of an application, it is desirable that a re-deploy of an application does not overwrite the externally managed schedules.
We also need to allow the current behavior to continue for existing users who manage the schedules using the application.
The proposed solution is to have a deploy time flag
updateSchedules
to control the behavior -updateSchedules
is set totrue
In this case, when an application is redeployed, all existing schedules will be changed to match the schedules defined in the new application version.
updateSchedules
is set totrue
by default, hence this preserves current behavior.updateSchedules
is set tofalse
If a system administrator sets
updateSchedules
tofalse
during application deployment time then no changes are done to the existing schedules, nor any new schedules added. Only if a program is deleted, then its schedule is removed.The default value of
updateSchedules
parameter can be changed in cdap-site.xml.No matter what
updateSchedules
is set to in cdap-site.xml, when an application is deleted all the schedules associated with the application are deleted.