-
Notifications
You must be signed in to change notification settings - Fork 6
Extractor registration fixes #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
removed collections, fixed exchange declaration, made host a config, a few other small things
tcnichol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested. Extractors register and the extractor info is now working properly.
I'll wait until this is merged in, then update the dockerize heartbeat pull request with these changes.
is optional[dict] instead of list[dict]
…xtractor-register-fixes # Conflicts: # backend/app/rabbitmq/heartbeat_listener_sync.py
is optional[dict] instead of list[dict]
| connection = pika.BlockingConnection(parameters) | ||
| channel = connection.channel() | ||
| """ | ||
| channel.exchange_declare( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this block be deleted?
| db = client["clowder2"] | ||
| existing_extractor = db["listeners"].find_one({"name": extractor_queue}) | ||
| extractor_parameters = extractor_info["parameters"]["schema"] | ||
| extractor_info["parameters"] = extractor_parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come we are reassigning parameters.schema to parameters in these two lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was a mistake. I took these lines out.
|
Fixed how this one registers the extractor parameters. Parameters was a List[dict] changed it to be a dict. |
Some additional cleanup as well: