Sunday 28 July 2019

How could one close all instances of chromium? (Opened by an API using Puppeteer)

Hey guys, I have an API and I’m 99% certain it’ll close the puppeteer instance, but I have had instances where the node app processing the API crashed and orphaned a Chromium browser instance.This isn’t a mission critical API just a fairly useful internal tool I whipped together for a small team.I’d love for some automated way to close all browser instances of Chromium at, day, 12:00am everyday. That way if I don’t have time to debug it, I don’t have to worry about an accidental resource leak and the team can continue to use the API after the app restarts.Any ideas?

Submitted July 28, 2019 at 10:19PM by g3t0nmyl3v3l

No comments:

Post a Comment