Notifications

55 views

Overview


A discovery schedule can be configured to have a "max run time". The discovery will be automatically cancelled if this max run time is reached.

Discovery Cancellation Process Overview


A couple of important script includes are called when a discovery is created:

  • Discovery
  • StartDiscovery

StartDiscovery creates a scheduled job(sys_trigger record) to cancel the discovery. The following is an example scheduled job created to cancel a discovery:

The scripts will also log to "System Logs" that the discovery will be cancelled and at what time:

 

Troubleshooting


If the discovery is not cancelled as expected, the following can be done for troubleshooting.

  1. Check that script includes Discovery and StartDiscovery are OOB.
  2. Check that the cancellation scheduled jobs are being created as expected, a test discovery can be run to confirm this.
  3. Search the "System Logs > System Log > All" for "Cancelling Discovery <discovery_status_number>" (replace with the actual discovery number).
    • If the "Cancelling Discovery ..." message is found, then the mechanism to cancel the discovery was successful.
  4. Check that there were no performance issues at the time the discovery should have been cancelled and that the workers were not behind (unlikely to happen).

Additional Information


Related to this topic:

 

Article Information

Last Updated:2018-08-24 10:16:52
Published:2018-08-24
Log Message.pngscheduledCancelJob.png