code: function _pull(job) {
      logger.silly(`Pulling ${job.id}`);
      job.stderr().then((streamError) => {
          let stderrString = null;
          streamError.on('data', function (datum) {
              stderrString = stderrString ? stderrString + datum.toString() : datum.toString();
          })
              .on('end', function () {
              if (!stderrString) {
                  _storeAndEmit(job.id);
                  return;
              }
              logger.warn(`Job ${job.id} delivered a non empty stderr stream\n${stderrString}`);
              job.ERR_jokers--;
              if (job.ERR_jokers > 0) {
                  console.log(`Resubmitting this job ${job.ERR_jokers} try left`);
                  job.resubmit();
                  liveMemory.setCycle({ jobObject: job }, 0);
              }
              else {
                  console.log("This job will be set in error state");
                  _storeAndEmit(job.id, 'error');
              }
          });
      });
  }
docs: /*
  handling job termination.
  Eventualluy resubmit job if error found