diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-06-29 02:55:59 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-06-29 02:55:59 +0000 |
commit | 399b394025f43d3e97f654816440df118ffe42b5 (patch) | |
tree | c58299ee05c1698199dd2abc24ee578793ee6ea1 /taskflow/examples | |
parent | a948f43aac6e95e5e5269ce85e2ebb42b3cd1933 (diff) | |
parent | 2e3543e566476a8be29379cf231d07b6c8697713 (diff) | |
download | taskflow-399b394025f43d3e97f654816440df118ffe42b5.tar.gz |
Merge "Remove usage of deprecated 'task_notifier' property in build_car example"
Diffstat (limited to 'taskflow/examples')
-rw-r--r-- | taskflow/examples/build_a_car.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/taskflow/examples/build_a_car.py b/taskflow/examples/build_a_car.py index a329181..cb952f3 100644 --- a/taskflow/examples/build_a_car.py +++ b/taskflow/examples/build_a_car.py @@ -167,7 +167,7 @@ engine = taskflow.engines.load(flow, store={'spec': spec.copy()}) # flow_watch function for flow state transitions, and registers the # same all (ANY) state transitions for task state transitions. engine.notifier.register(ANY, flow_watch) -engine.task_notifier.register(ANY, task_watch) +engine.atom_notifier.register(ANY, task_watch) eu.print_wrapped("Building a car") engine.run() @@ -180,7 +180,7 @@ spec['doors'] = 5 engine = taskflow.engines.load(flow, store={'spec': spec.copy()}) engine.notifier.register(ANY, flow_watch) -engine.task_notifier.register(ANY, task_watch) +engine.atom_notifier.register(ANY, task_watch) eu.print_wrapped("Building a wrong car that doesn't match specification") try: |