Introduction

The purpose of this task is to check if the database is out of sync, and if so an error "E_DATABASE_SERVER_SYNC_ERROR" will be raised in the audit logs.

The task can be found by navigating to "Administration | Tasks", then scrolling down to the task "Check Database Server";

Task Parameters

This task does not use any task parameters.

Editing and Scheduling the Task

Viewing and Editing the task

The task can be edited by left clicking on the context menu of the task and selecting "Edit";

A new window will now open titled "Task - Edit";







Enter the name to be assigned to the task within the management console.





Enter a description of what the task will do.





The version number of the task.





This field is used to specify when the task is scheduled to execute;





This field will determine if the task schedule is enabled (if enabled the task will execute at the scheduled time).





Specifies how many times the task should be repeated after the task is executed.






import com.deepnet.das.log.EventCode
import com.deepnet.das.cluster.DatabaseServerService

DatabaseServerService ser = new DatabaseServerService();
        ser.detectDatabaseSync()





Scheduling the Task

Select the "Enable Schedule" checkbox to ensure the task schedule is activated, then use the pencil icon ("")  to specify the time and frequency settings for automated task execution.

Manual Task Execution

The task can be run manually from the management console by left click on the context menu of the task, then selecting "Run";

A new window will open titled "Execute Task" will then open (the window will be populated with the default task property values);






.





To execute the task click  the  button.