docs: function pollJob(client, jobUuid, cb) {
      var attempts = 0;
      var errors = 0;
  
      var timeout = 5000;  // 5 seconds
      var limit = 720;     // 1 hour
  
      var poll = function () {
          client.get('/jobs/' + jobUuid, function (err, req, res, job) {
              attempts++;
  
              if (err) {
                  errors++;
                  if (errors >= 5) {
                      return cb(err);
                  } else {
                      return setTimeout(poll, timeout);
                  }
              }
  
              if (job && job.execution === 'succeeded') {
                  return cb(null, job);
              } else if (job && job.execution === 'failed') {
                  return cb(null, job);
              } else if (job && job.execution === 'canceled') {
                  return cb(null, job);
              } else if (attempts > limit) {
                  return cb(new Error('polling for import job timed out'), job);
              }
  
              return setTimeout(poll, timeout);
          });
      };
  
      poll();
  }