 
 Tasks = require '../collections/Tasks'
 TasksPending = require '../collections/TasksPending'
-Slaves = require '../collections/Slaves'
 TaskCleanups = require '../collections/TaskCleanups'
 
 TasksTableView = require '../views/tasks'


        else
            @collections.tasks = new Tasks [], {@state}
        @collections.slaves = new Slaves []
        @collections.taskCleanups = new TaskCleanups

        @setView new TasksTableView _.extend {@state, @searchFilter},
            collection: @collections.tasks
            pendingTasks: @collections.tasksPending
            attributes:
                slaves: @collections.slaves
                cleaning: @collections.taskCleanups

        # Fetch a pending task's full details
        @view.on 'getPendingTask', (task) => @getPendingTask(task)

        @collections.slaves.fetch()
        @collections.tasks.fetch()
        @collections.taskCleanups.fetch()
        app.showView @view

        # Don't refresh if the table is sorted
        return if @view.isSorted

        @collections.taskCleanups.fetch()
        @collections.tasks.fetch reset: true

