Watch Dogs

Watch Dogs

circle-info

Watchdogarrow-up-right is a thread that regularly checks license or feature

License Watch Dogs

setup_license_watch_dog

Initializes and starts the license watchdog with the specified callback and timeout settings.

Parameters:

  • callback (callable): A callable to be executed by the watchdog in response to specific events or conditions.

  • timeout (int): The period in minutes after which the watchdog should perform its checks.

  • deamon (bool, optional): Run thread as deamon. Defaults to False.

  • run_immediately (bool, optional): Run license check immediately; if False wait for timeout first. Defaults to True.

manager = LicenseManager(conf)

license_id = LicenseID.from_key("H7G3-F4PJ-4AEJ-UKYL")

license = manager.activate_license(license_id)

license.setup_license_watch_dog(callback, timeout)

stop_license_watch_dog

Stops the license watchdog if it is currently running.

Feature Watch Dogs

setup_feature_watch_dog

Initializes and starts the feature watchdog with the specified callback and timeout.

Parameters:

  • callback (callable): A callable to be executed by the watchdog in response to specific events or conditions.

  • timeout (int): The period in minutes after which the watchdog should perform its checks.

  • deamon (bool, optional): Run thread as deamon. Defaults to False.

stop_feature_watch_dog

Stops the feature watchdog if it is currently running.

Was this helpful?