Create Scheduled Tasks

<p class="shortdesc">You can designate an execution time period for the created tasks. </p> <section class="section prereq" id="createtask__prereq_ihp_kc1_ckb"><div class="tasklabel"><h2 class="doc-tairway">Before you begin</h2></div> <p class="p">You have finished creating script execution tasks or health inspection tasks.</p> </section> <section class="section context"><div class="tasklabel"><h2 class="doc-tairway">About this task</h2></div> <p class="p">After a task is created, you can turn it into a scheduled task so as to execute it regularly. Specify a time for regular execution, and the task will be executed at the set time. </p> </section> <section id="createtask__steps_y35_2cm_bkb"><div class="tasklabel"><h2 class="doc-tairway">Procedure</h2></div><ol class="ol steps" id="createtask__steps_y35_2cm_bkb"><li class="li step stepexpand"> <span class="ph cmd">Log in to the <a class="xref" href="https://pinganyun.com/console/osp" target="_blank">Operation System Platform Console</a>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the left navigation pane, click <span class="ph menucascade"><span class="ph uicontrol">Job Management </span><abbr title="and then"> > </abbr><span class="ph uicontrol">Schedule Task</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the <span class="keyword wintitle">Scheduler</span> page, click <span class="ph uicontrol">Create</span> in the upper-right corner.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the <span class="keyword wintitle">Create Scheduler</span> page, you need to complete the following configuration. </span> <div class="itemgroup info"> <img class="image" id="createtask__image_h14_hcm_bkb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20201407174752-19d8b22a9897.png" width="800"> <table class="table frame-all" id="createtask__table_gjj_zdl_bkb"><caption></caption><colgroup><col style="width:34.01360544217687%"><col style="width:65.98639455782312%"></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="createtask__table_gjj_zdl_bkb__entry__1">Configuration Item</th> <th class="entry" id="createtask__table_gjj_zdl_bkb__entry__2">Description</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="createtask__table_gjj_zdl_bkb__entry__1 "> <p class="p"><span class="ph uicontrol">Name</span></p> </td> <td class="entry" headers="createtask__table_gjj_zdl_bkb__entry__2 "> <p class="p">About the regular task name. </p> </td> </tr> <tr class="row"> <td class="entry" headers="createtask__table_gjj_zdl_bkb__entry__1 "> <p class="p"><span class="ph uicontrol">Regular Description</span></p> </td> <td class="entry" headers="createtask__table_gjj_zdl_bkb__entry__2 "> <p class="p">About the regular task description.</p> </td> </tr> <tr class="row"> <td class="entry" headers="createtask__table_gjj_zdl_bkb__entry__1 "> <p class="p"><span class="ph uicontrol">Target Task</span></p> </td> <td class="entry" headers="createtask__table_gjj_zdl_bkb__entry__2 "> <p class="p">Select the task for regular execution. </p> <p class="p">Click <span class="ph uicontrol">+Select Task</span>. On the <span class="keyword wintitle">Task</span>page, choose one and click <span class="ph uicontrol">Select</span>. </p> </td> </tr> <tr class="row"> <td class="entry" headers="createtask__table_gjj_zdl_bkb__entry__1 "> <p class="p"><span class="ph uicontrol">Cron Expression </span></p> </td> <td class="entry" headers="createtask__table_gjj_zdl_bkb__entry__2 "> <p class="p">Set time period for the regular task execution. </p> <p class="p">Click the field behind <span class="ph uicontrol">Cron Expression</span>. On the page that opens, select relevant time period. </p> <img class="image" id="createtask__image_wxf_5c1_ckb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20201407174752-1dc02bac97a5.png" width="500"> </td> </tr> </tbody></table> </div> </li><li class="li step stepexpand"> <span class="ph cmd">After finishing the configuration, click <span class="ph uicontrol">Save</span>.</span> </li></ol></section> <section class="section postreq" id="createtask__postreq_frq_ck1_ckb"><div class="tasklabel"><h2 class="doc-tairway">What to do next</h2></div> <p class="p">After the scheduled task is created, the state of the task turns into <span class="ph uicontrol">Ready</span>. You need to set the state as <span class="ph uicontrol">Running</span>. In this way, the scheduled task can be executed according to the set time period. For more information, see <a class="xref" href="dc_osp_cfg_0019.html" title="After the scheduled tasks are created, you need to start them and change the state into “Running”. In this way, the scheduled tasks can be executed according to the set time period.">Start Scheduled Tasks</a>. </p> </section>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products