Skip to content

Commit

Permalink
use sortkey in finish_task in distributed
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Jul 8, 2015
1 parent cdbdaf0 commit d7e0ab0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dask/distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

from ..core import get_dependencies, flatten
from .. import core
from ..async import finish_task, start_state_from_dask as dag_state_from_dask
from ..async import (sortkey, finish_task,
start_state_from_dask as dag_state_from_dask)

with open('log.scheduler', 'w') as f: # delete file
pass
Expand Down Expand Up @@ -634,7 +635,7 @@ def fire_task():
raise payload['status']

key = payload['key']
finish_task(dsk, key, dag_state, results,
finish_task(dsk, key, dag_state, results, sortkey,
release_data=self._release_data)

while dag_state['ready'] and self.available_workers.qsize() > 0:
Expand Down

0 comments on commit d7e0ab0

Please sign in to comment.