title: Bigquery Load in Cloud Function in Node JS getting Job ID without waiting
body: <p>I'm struggling with getting the BigQuery job id from my below cloud function code.
  I need to job ID in order to verify if the job is done successfully</p>
  
  <p>Here is my code:</p>
  
  <pre><code> var storage = new Storage({projectId: process.env.PROJECT_ID});
      var tableId = getTableID(file);
  
      const metadata = {
          sourceFormat: 'CSV',
          skipLeadingRows: 1,
          autodetect: false,
          writeDisposition: 'WRITE_APPEND',
          fieldDelimiter: process.env.DELIMITER,
          allowJaggedRows: 'TRUE'
      };
  
      console.log(`The file ${file.name} has been successfully picked up and going to be stored in table ${process.env.PROJECT_ID}:${process.env.DATASET_ID}.${tableId}.`);
      outboundHandler.sendStatusUpdate(file.name, process.env.IN_PROGRESS_CODE);
      var errorsState = false;
  
  // Loads data from a Google Cloud Storage file into the table
     const [job] =   bigquery
          .dataset(process.env.DATASET_ID)
          .table(tableId)
          .load(storage.bucket(file.bucket).file(file.name), metadata);
  
            console.log(job.id);
  </code></pre>