    myJobs.setLogStream process.stdout
    myJobs.allow
       manager: (userId, method, params) -> return userId?
+      jobRerun: (userId, method, params) -> return userId?
 
    Meteor.startup () ->
 

               inputFileId: file._id
               outputFileId: outputFileId
            )
            if jobId = job.delay(5000).retry({ retryWait: 20000, retries: 10 }).save()
               myData.update({ _id: file._id }, { $set: { 'metadata._Job': jobId, 'metadata.thumb': outputFileId } })
               myData.update({ _id: outputFileId }, { $set: { 'metadata._Job': jobId, 'metadata.thumbOf': file._id } })
            else

      'click .rerun-job': (e, t) ->
         console.log "Rerunning job: #{this._id}"
         job = myJobs.makeJob this
         job.rerun({ wait: 15000 }) if job
      'click .pause-job': (e, t) ->
         console.log "Pausing job: #{this._id}"
         job = myJobs.makeJob this
