Hi Cory

I have a question about the reactive handlers. How exactly do
when_file_changed handlers get dispatched? Consider the following:


@when('init')
def handler1():
    change_file('file1')
    set_state('A')

@when_changed('file1')
def handler2():
    restart_service()

@when('A')
def handler3():
    change_file('file1')


The order in which handlers are dispatched is random afaik, so there is the
possibility that handler2 is executed before handler3. This would mean
file1 is changed again after executing handler2. Will handler2 be executed
again?



Kind regards
Merlijn Sebrechts
-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to