code: function _resurrect (jobObj, workDir) {
      if (debugMode) {
          console.log("trying to resurrect the job at : " + workDir)
      }
  
      jobObj.workDir = workDir;
      jobObj.id = _extractJobID(workDir);
  
      if (debugMode) {
          console.log("the job looks like :")
          console.dir(jobObj);
      }
  
      var stdout = jobObj.stdout();
      var stderr = jobObj.stderr();
      if (jobObj.emulated) {
          console.log("emulated toto")
          async.parallel([function(callback) {
                              var fOut = jobObj.workDir + '/' + jobObj.id + '.err';
                              var errStream = fs.createWriteStream(fOut);
                              stderr.pipe(errStream).on('close', function() {
                                  callback(null, fOut);
                              });
                          }, function(callback) {
                              var fOut = jobObj.workDir + '/' + jobObj.id + '.out';
                              var outStream = fs.createWriteStream(fOut);
                              stdout.pipe(outStream).on('close', function() {
                                  callback(null, fOut);
                              });
                          }], // Once all stream have been consumed, get filesnames
                          function(err,results) {
                              var _stdout = fs.createReadStream(results[1]);
                              var _stderr = fs.createReadStream(results[0]);
                              jobObj.emit("completed", _stdout, _stderr, jobObj);
                          });
      } else {
          jobObj.emit("completed", stdout, stderr, jobObj);
      }
  }
docs: /*
  Resurrect an old job according to its @workDir, by modifying the reference to @jobObj