Fix code in adaptive docs.
@@ -60,7 +60,7 @@ class will call these methods with the correct values at the correct times.
class MyCluster(object):
@gen.coroutine
- def scale_up(n):
+ def scale_up(self, n):
"""
Bring the total count of workers up to ``n``
@@ -88,6 +88,7 @@ class will call these methods with the correct values at the correct times.
scheduler = Scheduler()
cluster = MyCluster()
adapative_cluster = Adaptive(scheduler, cluster)
+ scheduler.start()
Implementing these ``scale_up`` and ``scale_down`` functions depends strongly
on the cluster management system. See :doc:`LocalCluster <local-cluster>` for
