-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 101-dataset-metadata-jsonld
- Loading branch information
Showing
3 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,8 @@ def __init__(self): | |
rabbitmq_uri = os.getenv('RABBITMQ_URI', "amqp://guest:[email protected]/%2f") | ||
clowder_url = os.getenv("CLOWDER_URL", "") | ||
registration_endpoints = os.getenv('REGISTRATION_ENDPOINTS', "") | ||
extractor_key = os.getenv("EXTRACTOR_KEY", "") | ||
clowder_email = os.getenv("CLOWDER_EMAIL", "") | ||
logging_config = os.getenv("LOGGING") | ||
mounted_paths = os.getenv("MOUNTED_PATHS", "{}") | ||
input_file_path = os.getenv("INPUT_FILE_PATH") | ||
|
@@ -90,6 +92,12 @@ def __init__(self): | |
help='pickle file that needs to be processed (only needed for HPC)') | ||
self.parser.add_argument('--clowderURL', nargs='?', dest='clowder_url', default=clowder_url, | ||
help='Clowder host URL') | ||
self.parser.add_argument('--key', '-k', dest="extractor_key", | ||
default=extractor_key, | ||
help='Unique key to use for extractor queue ID (sets extractor to private)') | ||
self.parser.add_argument('--user', '-u', dest="clowder_email", | ||
default=clowder_email, | ||
help='Email address of Clowder user who will initially be assigned ownership (ignored if no --key provided)') | ||
self.parser.add_argument('--rabbitmqURI', nargs='?', dest='rabbitmq_uri', default=rabbitmq_uri, | ||
help='rabbitMQ URI (default=%s)' % rabbitmq_uri.replace("%", "%%")) | ||
self.parser.add_argument('--rabbitmqQUEUE', nargs='?', dest='rabbitmq_queuename', | ||
|
@@ -169,7 +177,9 @@ def start(self): | |
mounted_paths=json.loads(self.args.mounted_paths), | ||
clowder_url=self.args.clowder_url, | ||
max_retry=self.args.max_retry, | ||
heartbeat=self.args.heartbeat) | ||
heartbeat=self.args.heartbeat, | ||
extractor_key=self.args.extractor_key, | ||
clowder_email=self.args.clowder_email) | ||
connector.connect() | ||
threading.Thread(target=connector.listen, name="RabbitMQConnector").start() | ||
|
||
|