 
       # If a removed file has an associated cancellable job, cancel it.
       removedFileJob = (file) ->
-         console.warn "Removed a file!", file._id
          if file.metadata?._Job
             if job = myJobs.findOne({_id: file.metadata._Job, status: { $in: myJobs.jobStatusCancellable }},{ fields: { log: 0 }})
                console.log "Cancelling the job for the removed file!", job._id

myJobs = new JobCollection 'queue',
   idGeneration: 'MONGO'
   transform: (d) ->
      console.log "Transforming...", d
      try
         res = myJobs.createJob d
         console.warn "succeeded in transform"
      catch e
         console.warn "failed in transform"
         res = d
      return res



      # Create a job to make a thumbnail for each newly uploaded image
      addedFileJob = (file) ->
         # Don't make new jobs for files tha already have them
         unless file?.metadata?._Job?
            outputFileId = myData.insert
