From de441bf1c7e5ddd159125599114f4ff55f198716 Mon Sep 17 00:00:00 2001 From: robin Date: Wed, 8 Jan 2025 12:39:37 -0500 Subject: [PATCH 1/3] commenting out cache entries messages --- edsl/data/RemoteCacheSync.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/edsl/data/RemoteCacheSync.py b/edsl/data/RemoteCacheSync.py index 1d7b9030..222968a9 100644 --- a/edsl/data/RemoteCacheSync.py +++ b/edsl/data/RemoteCacheSync.py @@ -112,18 +112,18 @@ def _sync_from_remote(self) -> None: missing_count = len(diff.client_missing_entries) if missing_count == 0: - self._output("No new entries to add to local cache.") + # self._output("No new entries to add to local cache.") return - self._output( - f"Updating local cache with {missing_count:,} new " - f"{'entry' if missing_count == 1 else 'entries'} from remote..." - ) + # self._output( + # f"Updating local cache with {missing_count:,} new " + # f"{'entry' if missing_count == 1 else 'entries'} from remote..." + # ) self.cache.add_from_dict( {entry.key: entry for entry in diff.client_missing_entries} ) - self._output("Local cache updated!") + # self._output("Local cache updated!") def _get_entries_to_upload(self, diff: CacheDifference) -> CacheEntriesList: """Determines which entries need to be uploaded to remote cache.""" @@ -154,22 +154,22 @@ def _sync_to_remote(self) -> None: upload_count = len(entries_to_upload) if upload_count > 0: - self._output( - f"Updating remote cache with {upload_count:,} new " - f"{'entry' if upload_count == 1 else 'entries'}..." - ) + # self._output( + # f"Updating remote cache with {upload_count:,} new " + # f"{'entry' if upload_count == 1 else 'entries'}..." + # ) self.coop.remote_cache_create_many( entries_to_upload, visibility="private", description=self.remote_cache_description, ) - self._output("Remote cache updated!") + # self._output("Remote cache updated!") else: - self._output("No new entries to add to remote cache.") + # self._output("No new entries to add to remote cache.") self._output( - f"There are {len(self.cache.keys()):,} entries in the local cache." + # f"There are {len(self.cache.keys()):,} entries in the local cache." ) From 356418ddfdf7bdd69cdca4bf1fbb96be51f697a2 Mon Sep 17 00:00:00 2001 From: robin Date: Wed, 8 Jan 2025 12:41:04 -0500 Subject: [PATCH 2/3] commenting out cache entries messages --- edsl/data/RemoteCacheSync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edsl/data/RemoteCacheSync.py b/edsl/data/RemoteCacheSync.py index 222968a9..7bac0b50 100644 --- a/edsl/data/RemoteCacheSync.py +++ b/edsl/data/RemoteCacheSync.py @@ -165,7 +165,7 @@ def _sync_to_remote(self) -> None: description=self.remote_cache_description, ) # self._output("Remote cache updated!") - else: + # else: # self._output("No new entries to add to remote cache.") self._output( From c9a5b2541720b4afc41082b6dd04b1bb3c8060cc Mon Sep 17 00:00:00 2001 From: robin Date: Wed, 8 Jan 2025 12:45:29 -0500 Subject: [PATCH 3/3] commenting out cache entries messages --- edsl/data/RemoteCacheSync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edsl/data/RemoteCacheSync.py b/edsl/data/RemoteCacheSync.py index 7bac0b50..c96284cf 100644 --- a/edsl/data/RemoteCacheSync.py +++ b/edsl/data/RemoteCacheSync.py @@ -168,9 +168,9 @@ def _sync_to_remote(self) -> None: # else: # self._output("No new entries to add to remote cache.") - self._output( + # self._output( # f"There are {len(self.cache.keys()):,} entries in the local cache." - ) + # ) if __name__ == "__main__":