Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After a timeout, chrome will leave behind a SingletonLock, which prev… #1219

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

spresse1
Copy link
Contributor

Summary

After a timeout in the pdf, screenshot, or dom extractor inside a docker container, chrome will leave behind a file at ~/.config/chromium/SingletonLock. This stops all three extractors from functioning until the docker container is completely torn down and regenerated.

This code adds removal of this file after a timeout only when running in a docker container. There is no behavior change outside a docker container. This was a deliberate choice on my part, as I don't want to interfere with a user's running chrome sessions when not running in a docker container.

Related issues

#1181

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk

…ents future instances of chrome from starting. When an extractor fails due to a timeout, remove this file.
@pirate
Copy link
Member

pirate commented Aug 29, 2023

Thanks! This seems like a reasonable workaround for now until I finish the Huey + playwright event driven refactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants