Schedule Task Management

Introduction

 

Insights Product manages all timer tasks like Platform Engine through UI. This will provide flexibility to manage task schedule, START/STOP different timer tasks from UI. It also provides audit log of all executions and help debug issues if any. UI provides options to run multiple instances of timer task to handle work in parallel to improve performance.

Prerequisite

User should use Insights product v8.8 and higher. This functionality comes under configuration section and available only for Admin user.

  • It is mandatory to upgrade PlatformService, PlatformEngine and UI all together to use this functionality.

  • Once new artifacts are deployed, start Tomcat and login to UI and check Schedule Task in Configuration --> Task Management --> Schedule Task Management section

  • start PlatformEngine

Process

By Default, all tasks register when Tomcat get started. Once tomcat is up and PlatformService is deployed correctly, user should login and see below view

Get Task List

Admin user can access this from Configuration --> Task Management --> Schedule Task Management

Add Task

User can add new task or can create multiple instances of existing task, Make sure that class detail present in Engine Jar

Steps

  1. Click on ADD (+) icon

  2. Add Task Name which contain alphanumeric and underscore

  3. Fill Class detail nothing but package name and class name for example com.cognizant.devops.engines.platformengine.modules.aggregator.EngineAggregatorModule

  4. Add cron expression, user build cron expression any online site.

Make sure that Task Name is correct, user cannot change it after save.

Edit Task

  1. Select task which user want to edit

  2. Click on edit icon

  3. Use will be allowed to edit Schedule and class detail.

Delete Task

Steps

  1. Select task which user want to delete

  2. Click on delete icon and delete task

  3. Once task deleted it cannot be undone

Action

This screen supports three actions

START

This use to start task, if user want to START any JOB then he will click on this START button,

By default EngineAggregatorModule, EngineCorrelatorModule, OfflineDataProcessingExecutor are in START mode.

Once job started user must see that last run and scheduled history in history tab

Task history detail

Select the task for which you want to view execution history and click on details icon as shown above. User should see below screen with execution details.

STOP

To stop any task, click on stop button. It takes 20 mins to actually STOP the job in the background as deamon process runs every 20 mins.

RESCHEDULED

If user want to change schedule of a job, then click on edit button. Use can change class detail or schedule. Once task details are saved, status will change to RESCHEDULED. (Internally it stops old job and register new job with new schedule)

 

 

 

 

©2021 Cognizant, all rights reserved. US Patent 10,410,152