Open whollacsek opened 2 months ago
Try this:
args: ['--single-process', '--no-zygote', '--no-sandbox']
It doesn't seem to work with those args, however I just tried adding MAX_WAIT_FOR_SIGINT=1
to the worker container and the child process is killed (https://github.com/windmill-labs/windmill/pull/3094#issuecomment-1917709635)
Describe the bug
In the script editor if we click on the test button on the right panel then click on cancel button while a puppeteer instance is running the associated chromium process is not kill properly which lead to maximum CPU usage.
To reproduce
export async function main() { const browser = await puppeteer.launch( { executablePath: '/usr/bin/chromium', headless: true, args: ['--no-sandbox'] } )
const page = await browser.newPage() await page.goto('https://www.google.com') // ... do more work here await browser.close() }