From 2ede359095660b8b0906cd26fe8eca2a6f429010 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 19 Mar 2020 16:16:04 -0700 Subject: skip-db option also for worker --- python/sandcrawler_worker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/sandcrawler_worker.py b/python/sandcrawler_worker.py index 0ba4d03..5720f48 100755 --- a/python/sandcrawler_worker.py +++ b/python/sandcrawler_worker.py @@ -58,6 +58,7 @@ def run_persist_grobid(args): s3_access_key=args.s3_access_key, s3_secret_key=args.s3_secret_key, s3_only=args.s3_only, + db_only=args.db_only, ) pusher = KafkaJsonPusher( worker=worker, @@ -173,6 +174,9 @@ def main(): sub_persist_grobid.add_argument('--s3-only', action='store_true', help="only upload TEI-XML to S3 (don't write to database)") + sub_persist_grobid.add_argument('--db-only', + action='store_true', + help="only write status to database (don't upload TEI-XML to S3)") sub_persist_grobid.set_defaults(func=run_persist_grobid) sub_persist_pdftrio = subparsers.add_parser('persist-pdftrio', -- cgit v1.2.3