       {status, worker} = progress
       @workers.add(id: worker).get(worker).addStatus(status)
 
-    @on 'all', -> console.log arguments
+    # @on 'all', -> console.log arguments
 
 class Job extends Backbone.Model
   defaults:
     status: 'waiting'
     dots: []
+
+  initialize: ->
+    @on 'change:worker', (_, worker)->
+      if worker
+        @trigger 'assigned', worker
+      else
+        @trigger 'completed'
 
   title: -> @id.match(/\/(.*)\./)[1].replace /_/g, ' '
 

  tagName: 'li'
  initialize: ->
    @listenTo @model, 'change', @render
    @listenTo @model, 'change:worker', @remove

  render: ->
    @$el.addClass( @model.get 'status' ).html "<p>#{@model.title()}</p>"

    @listenTo @model.jobs, 'add', (job)->
      new View.Job(model: job).render().$el.appendTo '#waiting'

    @listenTo @model.workers, 'add', (job)->
      workerView = new View.Worker(model: job).render()
      workerView.$el.appendTo '#workers'
      workerView.model.set workerView.$el.offset()
