Skip to content

Commit

Permalink
Allow a specific amqp server argument to be specified at construction…
Browse files Browse the repository at this point in the history
… of PollingEmrestCatalog. Falls back to same server as the specified catalog server.

Bump version.
  • Loading branch information
mikedarcy committed Nov 25, 2020
1 parent 93861fd commit 4c5b962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deriva/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.4.0"
__version__ = "1.4.1"

from deriva.core.utils.core_utils import *
from deriva.core.base_cli import BaseCLI, KeyValuePairArgs
Expand Down
4 changes: 2 additions & 2 deletions deriva/core/polling_ermrest_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def look_for_work():
"""

def __init__(self, scheme, server, catalog_id, credentials={}, caching=True, session_config=None):
def __init__(self, scheme, server, catalog_id, credentials={}, caching=True, session_config=None, amqp_server=None):
"""Create ERMrest catalog binding.
Arguments:
Expand All @@ -58,7 +58,7 @@ def __init__(self, scheme, server, catalog_id, credentials={}, caching=True, ses
"""
ErmrestCatalog.__init__(self, scheme, server, catalog_id, credentials, caching, session_config)
self.amqp_server = server
self.amqp_server = amqp_server if amqp_server else server
self.amqp_connection = None
self.notice_exchange = "ermrest_changes"

Expand Down

0 comments on commit 4c5b962

Please sign in to comment.