Add a callback for keys synchronization
The sleep
mechanism during the RuleChecker callback was causing problems with IS communication.
Instead of waiting for the keys synchronization, a callback mechanism was implemented. In case the keys (loaded, scheduled, ap history) are not synchronized, the draft is cached. If RuleChecker receives a callback with an update of the keys and they are in sync, the last request in the cache is published (the cached requests are overwritten).
Edited by Aleksandra Poreba