Skip to content

Commit

Permalink
HARMONY-1624: Clarify documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyinverso committed Nov 2, 2023
1 parent 34b8ca6 commit 9e0de47
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions harmony/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
class BaseHarmonyAdapter(ABC):
"""
Abstract base class for Harmony service adapters. Service implementations
should inherit from this class and implement the `#invoke(self)` method to
adapt the Harmony message (`self.message`) into a service call and the
output of the service call into a response to Harmony (`self.completed_with_*`)
should inherit from this class and implement the `#invoke(self)` or `#process_item(self, item, source)`
method to adapt the Harmony message (`self.message`) into a service call
Services may choose to override methods that do data downloads and result
staging as well, if they use a different mechanism
Expand Down Expand Up @@ -115,7 +114,7 @@ def invoke(self):
if self.catalog:
return (self.message, self._process_catalog_recursive(self.catalog))

# Current processing using callbacks
# Deprecated, processing using callbacks
self._process_with_callbacks()

def get_all_catalog_items(self, catalog: Catalog, follow_page_links=True):
Expand Down

0 comments on commit 9e0de47

Please sign in to comment.