This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
Handle external signals to topic-extract
gracefully
#575
Labels
🗄️ database
Creation and maintenance of a database of scientific literature
🚀 Feature
It would be very useful to be able to send a signal (e.g. SIGINT / keyboard interrupt) to a running
bbs_database topic-extract
process and have a guarantee that the already processed articles would be stored inside of the output.jsonl
before the process is killed.Currently, one needs to wait for all articles to be finished.
Why useful?
timeout 100 bbs_database topic_extract ...
. I am currently working on the overall pipeline and it would be nice to be able to have "some results" quickly rather than having "all results" slowly.Other commands at least have a logic of saving things to disk when they run (
download
,parse
) so killing them is not a big deal.The text was updated successfully, but these errors were encountered: