Skip to content
Snippets Groups Projects

Send Kafka notifications when correction is complete

Merged Thomas Kluyver requested to merge send-kafka into master
All threads resolved!
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
import argparse
import os.path as osp
import yaml
from metadata_client.metadata_client import MetadataClient
@@ -6,7 +7,7 @@ from metadata_client.metadata_client import MetadataClient
parser = argparse.ArgumentParser(
description='Update run status at MDC for a given run id.')
parser.add_argument('--conf-file', type=str, help='Path to webservice config',
default='/home/xcal/calibration_webservice_deployed/webservice/webservice.yaml') # noqa
default=osp.join(osp.dirname(__file__), 'webservice.yaml'))
parser.add_argument('--flg', type=str, choices=["NA", "R", "A"],
help='Status flag for MDC request: NA - not available, R - running, A - available.') # noqa
parser.add_argument('--rid', type=int, help='Run id from MDC')
Loading