title: Can I have multiple Puppeteer browsers open?
body: <p>I'm using <code>node-cron</code> (which allows you to run cron scripts inside of your node program) to run some puppeteer scraping. The scripts will sometimes run at the same time, meaning there will be multiple instances of the browser, <code>const browser = await puppeteer.launch()</code>, open at once. </p>
  
  <p>Is this bad practice? If so, is there an alternative way of writing this code that won't make it fail?</p>
  
  <p>Thanks for your help.</p>
  
  <pre><code>cron.schedule('*/15 * * * *', async () =&gt; {    
      const browser = await pupeteer.launch({ headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox']});
      const page = await browser.newPage(); // Create new instance of puppet
      let today = moment();        
      logger.info(`Chrome Launched...`);
  
      try {
          await senatorBot(users, page, today.format("YYYY-DD-MM"));
      } catch(err) {
          logger.debug(JSON.stringify(err));
      }
  
      try {
          await senateCandidateBot(users, page, today.format("YYYY-DD-MM")); // This sequence matters, because agree statement will not be present...
      } catch(err) {
          logger.debug(JSON.stringify(err));
      }
  
      await page.close();
      await browser.close();
      logger.info(`Chrome Closed.`);
  
  });
  
  cron.schedule('*/15 17-19 * * 1-5', async () =&gt; {   
  
      logger.info(`Chrome Launched...`); 
      const browser = await pupeteer.launch({ headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox']});
      const page = await browser.newPage(); // Create new instance of puppet
      let today = moment();
  
      try {
          await contractBot(users, page, today.format("MM-DD-YYYY"));
      } catch(err) {
          logger.debug(JSON.stringify(err));
      }
  
      await page.close();
      await browser.close();
      logger.info(`Chrome Closed.`);
  });
  </code></pre>