Home / Repstance User Guide / DATA COMPARISON / Start/Stop Task

Start/Stop Task

Start and Stop the Task using “repcli”

The "compare run" command is used to start the comparison task. The syntax is

repcli compare run capture=capture_id taskname=task_name mode=0|1|2

The parameters are:

  • capture - ID of the Capture Process
  • taskname - Name of the task
  • mode - Run mode. The possible values are:
    • 0 - Default. Resume validation task if is was stopped, otherwise start it from scratch
    • 1 - Restart the task from scratch
    • 2 - Run the task in “incremental” mode to compare the data that has only been changed since the last run

Note - the only one task can be run at the time for the process

The "stop" command is used to stop the task that is currently running. The stopped task can be resumed later (see mode=0 of the "run" command). The command syntax is:

repcli compare stop capture=capture_id 

 

REST API

Run the task:

  • Endpoint: https://repstance_url/compare/run
  • Method: POST
  • Header:
    • Content-Type: application/json
    • X-Token: token
  • Body:
    {
      "capture_id":id_of_the_capture_process,
      "name":"name_of_the_task",
      “run”:1,
      “mode”:0|1|2
    }

Stop the task:

  • Endpoint: https://repstance_url/compare/run
  • Method: POST
  • Header:
    • Content-Type: application/json
    • X-Token: token
  • Body:
    {
      "capture_id":id_of_the_capture_process,
      "run":0
     }

Web UI

In order to run task using WebUI, click “Show More” of the Capture process and under “Data Comparison Report” tab select task and click “Run”:

 

 

Enable “Restart” if you wish to run the task from scratch. 

If you wish to compare only the changes since the last task execution then enable the “Incremental” flag:

 

The details on the running task will be available under “Data Comparison Report”:

 

You can stop running task by clicking “Stop” button.

 

 

Prev page:

Remove Task

Next page:

Task Status