azkaban-aplcache

Add dst warning to schedule page (#752) * DST Warning added *

9/28/2016 4:28:04 PM

Details

diff --git a/azkaban-web-server/src/main/resources/azkaban/webapp/servlet/velocity/schedulepanel.vm b/azkaban-web-server/src/main/resources/azkaban/webapp/servlet/velocity/schedulepanel.vm
index e00db81..7f9c863 100644
--- a/azkaban-web-server/src/main/resources/azkaban/webapp/servlet/velocity/schedulepanel.vm
+++ b/azkaban-web-server/src/main/resources/azkaban/webapp/servlet/velocity/schedulepanel.vm
@@ -37,8 +37,11 @@
 
             <div class="col-sm-12" style="height:55px;">
               <h4 style="color:Coral; font-style:italic;">All schedules are basead on the server timezone: <b id="timeZoneID"></b>.</h4>
+              <h6 style="color:#0080ff;">Warning: the execution will be skipped if it is scheduled to run during the hour that is lost when DST starts in the Spring.
+                E.g. there is no 2 - 3 AM when PST switches to PDT.</h6>
 
             </div>
+            <div class="col-xs-12" style="height:30px;"></div>
             <div class="form-group">
               <div class="col-sm-6">
                 <label class="col-sm-4 control-label" id="min_label">Min</label>
@@ -99,7 +102,7 @@
 
             <div class="col-sm-offset-1 col-sm-4">
               <div class="input-box">
-                <input type="text" id="cron-output" value="0 5,7-10 ? * 4-6" oninput = "updateExpression()" class="form-control">
+                <input type="text" id="cron-output" value="* * ? * *" oninput = "updateExpression()" class="form-control">
                 <span class="unit">0</span>
               </div>
             </div>
diff --git a/azkaban-web-server/src/web/js/azkaban/view/schedule-panel.js b/azkaban-web-server/src/web/js/azkaban/view/schedule-panel.js
index 603374f..a2c28ec 100644
--- a/azkaban-web-server/src/web/js/azkaban/view/schedule-panel.js
+++ b/azkaban-web-server/src/web/js/azkaban/view/schedule-panel.js
@@ -87,13 +87,13 @@ $(function() {
 
   updateOutput();
   $("#clearCron").click(function () {
-    $('#cron-output').val("* * * * ?");
+    $('#cron-output').val("* * ? * *");
     resetLabelColor();
     $("#minute_input").val("*");
     $("#hour_input").val("*");
-    $("#dom_input").val("*");
+    $("#dom_input").val("?");
     $("#month_input").val("*");
-    $("#dow_input").val("?");
+    $("#dow_input").val("*");
     $(cron_translate_id).text("")
     $(cron_translate_warning_id).text("")
     $('#nextRecurId').html("");