       if worker.waiting_for
         log.push ['  [waiting] ', key, "\n"]
         for dep in worker.waiting_for
-          code = if @_done[dep] then 'D' else if @workers[dep] then 'A' else 'M'
+          code = if @done[dep] then 'D' else if @workers[dep] then 'A' else 'M'
           log.push ['    ', code, ' ', dep, "\n"]
       else
         log.push ['  [running] ', key, "\n"]

    @params = {}
    { @verbose, @flush } = opts
    @as = {}
    @listeners = {}
    @triggers = {}
    @task_intervals = []

    @triggers[key] = deps.length
    for dep in deps
      (@listeners[dep] ||= []).push key
      @handle.ready.apply @, [dep] if @done[dep]

  # A worker has finished with the given value, so use `finish.lua` to
  # attempt to wrap up the worker.
