forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com> Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
31 lines
3.9 KiB
HTML
31 lines
3.9 KiB
HTML
<a name="dataartsstudio_01_7564"></a><a name="dataartsstudio_01_7564"></a>
|
|
|
|
<h1 class="topictitle1">Configuring a Yearly Scheduled Job</h1>
|
|
<div id="body0000001541398366"><div class="section" id="dataartsstudio_01_7564__section1915412852213"><h4 class="sectiontitle">Scenario</h4><p id="dataartsstudio_01_7564__p422816159222">This section describes how to configure a job that is scheduled at a specified time of a year.</p>
|
|
</div>
|
|
<div class="section" id="dataartsstudio_01_7564__section9574744142213"><h4 class="sectiontitle">Procedure</h4><p id="dataartsstudio_01_7564__p0267249102219">In DataArts Studio, create a job that is scheduled every month and add an empty Dummy node (which does not process data) to the job. You can set a condition expression on the connection line between the Dummy node and its subsequent node to check whether the current time falls in the specified day (for example, June 29, 2023) for scheduling the job. If yes, the subsequent node is executed. Otherwise, the subsequent node is skipped.</p>
|
|
<ol id="dataartsstudio_01_7564__ol8970144143213"><li id="dataartsstudio_01_7564__li189708414327">In the left navigation pane of the DataArts Factory console, choose <span class="menucascade" id="dataartsstudio_01_7564__menucascade12115152419112"><b><span class="uicontrol" id="dataartsstudio_01_7564__uicontrol15113112417114"><span id="dataartsstudio_01_7564__text101121245114">Data Development</span></span></b> > <b><span class="uicontrol" id="dataartsstudio_01_7564__uicontrol1811411242111"><span id="dataartsstudio_01_7564__text131131524121112">Develop Job</span></span></b></span>.</li><li id="dataartsstudio_01_7564__li8331163643613">Set <strong id="dataartsstudio_01_7564__b1184318658112911">Scheduling Frequency</strong> to <strong id="dataartsstudio_01_7564__b1162358796112911">Every month</strong>.<div class="fignone" id="dataartsstudio_01_7564__fig18451830183111"><span class="figcap"><b>Figure 1 </b>Setting Scheduling Frequency to Every month</span><br><span><img id="dataartsstudio_01_7564__image3461430163114" src="en-us_image_0000002269120033.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
<p id="dataartsstudio_01_7564__p35021836175520"></p>
|
|
<p id="dataartsstudio_01_7564__p657114475413"></p>
|
|
</li><li id="dataartsstudio_01_7564__li204039577362">Right-click the connection line between the Dummy node and its subsequent node and select <strong id="dataartsstudio_01_7564__b8114204071215">Set Condition</strong> to configure a condition expression that is used to determine whether to execute the subsequent node.<div class="fignone" id="dataartsstudio_01_7564__fig44871203615"><span class="figcap"><b>Figure 2 </b>Configuring a condition expression</span><br><span><img id="dataartsstudio_01_7564__image84914153615" src="en-us_image_0000002269120029.png"></span></div>
|
|
<p id="dataartsstudio_01_7564__p19770429573"></p>
|
|
</li><li id="dataartsstudio_01_7564__li69210334386">Configure the expression as follows:<pre class="screen" id="dataartsstudio_01_7564__screen6339205014390">#{DateUtil.getMonth(Job.planTime) == 6 ? "true" : "false"}</pre>
|
|
<p id="dataartsstudio_01_7564__p24241534183815">The expression is used to obtain the current time and check whether it falls in June. If yes, the subsequent node will be executed; if no, the subsequent node will be skipped.</p>
|
|
<div class="fignone" id="dataartsstudio_01_7564__fig1376820417421"><span class="figcap"><b>Figure 3 </b>Condition expression</span><br><span><img id="dataartsstudio_01_7564__image1768204184215" src="en-us_image_0000002234080828.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
<p id="dataartsstudio_01_7564__p175881418598"></p>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_01_0520.html">Usage Guidance</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
initImageViewer('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |