[GH-ISSUE #285] Feature Request: Catch SIGINT and exit gracefully #1713

Closed
opened 2026-03-01 17:53:05 +03:00 by kerem · 1 comment
Owner

Originally created by @Strubbl on GitHub (Oct 14, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/285

Type

  • General question or discussion
  • Propose a brand new feature
  • Request modification of existing behavior or design

What is the problem that your feature request solves

I want to abort a long-running archive process without loosing consistency so that i can resume it later.

Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes

It would be helpful if the archivebox can catch the CTRL+C signal (SIGINT) and react on that. It would be nice if would save all data (e.g. index.json) to disk and exit then. This way i have no corrupt data, e.g. like i had in the issue #245

What hacks or alternative solutions have you tried to solve the problem?

How badly do you want this new feature?

  • It's an urgent deal-breaker, I can't live without it
  • It's important to add it in the near-mid term future
  • It would be nice to have eventually

  • I'm willing to contribute dev time / money to fix this issue
  • I like ArchiveBox so far / would recommend it to a friend
  • I've had a lot of difficulty getting ArchiveBox set up
Originally created by @Strubbl on GitHub (Oct 14, 2019). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/285 <!-- Please fill out the following information, feel free to delete sections if they're not applicable or if long issue templates annoy you :) --> ## Type - [ ] General question or discussion - [ ] Propose a brand new feature - [x] Request modification of existing behavior or design ## What is the problem that your feature request solves <!-- e.g. I need to be able to archive spanish and french subtitle files from a particular <example.com> movie site that's going down soon. --> I want to abort a long-running archive process without loosing consistency so that i can resume it later. ## Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes <!-- e.g. I specifically need a new archive method to look for multilingual subtitle files related to pages. The bigger picture solution is the ability for custom user scripts to be run in a puppeteer context during archiving. --> It would be helpful if the archivebox can catch the CTRL+C signal (SIGINT) and react on that. It would be nice if would save all data (e.g. index.json) to disk and exit then. This way i have no corrupt data, e.g. like i had in the issue #245 ## What hacks or alternative solutions have you tried to solve the problem? <!-- A clear and concise description of any alternative solutions, workarounds, or other software you've considered using to fix the problem. --> ## How badly do you want this new feature? - [ ] It's an urgent deal-breaker, I can't live without it - [ ] It's important to add it in the near-mid term future - [x] It would be nice to have eventually --- - [x] I'm willing to contribute dev time / money to fix this issue - [x] I like ArchiveBox so far / would recommend it to a friend - [ ] I've had a lot of difficulty getting ArchiveBox set up
Author
Owner

@pirate commented on GitHub (Oct 17, 2019):

This already done in >=v0.4.

<!-- gh-comment-id:543239940 --> @pirate commented on GitHub (Oct 17, 2019): This already done in >=v0.4.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#1713
No description provided.