intel / murphy

Resource Policy
Other
18 stars 15 forks source link

"offical" way to subscribe events about resource set acquire or release #17

Closed chengyi closed 4 years ago

chengyi commented 4 years ago

Hi: I need to do some actions in domain controller based on the status of specific resource set, I want to do like:

  1. define a table in lua
  2. update table in resource's veto function
  3. handle the db notification in domain controller

is this way perfect? or we have better solution?

klihub commented 4 years ago

I think that is the best/intended way of doing it: administer the conditions you need to act on as data in some table and subscribe to that table from your domain controller.

chengyi commented 4 years ago

@klihub got it! thanks:+1: