           imported: true
           publicationId: publicationId
 
-# process next element from import queue
+# Process next element from import queue
 Deps.autorun ->
-  # We exclude status and progress fields so that function
-  # doesn't get recalled on every status or progress change
   document = ImportingFile.documents.findOne
     finished: false
     errored: false

      $exists: true
  ,
    fields:
      status: 0
      uploadProgress: 0
      readProgress: 0
  return unless document

  console.log "Autorun called for import queue " + document.name

  Meteor.call 'create-publication', document.name, document.sha256, (error, result) ->
    if error

          errored: true
          status: error.toString()
    return

  hash.finalize callback

testPDF = (file, callback) ->
