Skip to content

Commit

Permalink
19808 fixed publisher setup (#2579)
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzarKarim authored Apr 11, 2024
1 parent 3af578e commit 364e817
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion jobs/email-reminder/services/gcp_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def publisher(self):
self._publisher = pubsub_v1.PublisherClient(credentials=self.credentials_pub)
else:
self._publisher = pubsub_v1.PublisherClient()
return self.credentials_pub
return self._publisher

@staticmethod
def is_valid_envelope(msg: dict):
Expand Down
2 changes: 1 addition & 1 deletion jobs/future-effective-filings/services/gcp_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def publisher(self):
self._publisher = pubsub_v1.PublisherClient(credentials=self.credentials_pub)
else:
self._publisher = pubsub_v1.PublisherClient()
return self.credentials_pub
return self._publisher

@staticmethod
def is_valid_envelope(msg: dict):
Expand Down
2 changes: 1 addition & 1 deletion jobs/update-legal-filings/services/gcp_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def publisher(self):
self._publisher = pubsub_v1.PublisherClient(credentials=self.credentials_pub)
else:
self._publisher = pubsub_v1.PublisherClient()
return self.credentials_pub
return self._publisher

@staticmethod
def is_valid_envelope(msg: dict):
Expand Down
2 changes: 1 addition & 1 deletion python/common/gcp-queue/gcp_queue/gcp_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def publisher(self):
)
else:
self._publisher = pubsub_v1.PublisherClient()
return self.credentials_pub
return self._publisher

@staticmethod
def is_valid_envelope(msg: dict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def publisher(self):
self._publisher = pubsub_v1.PublisherClient(credentials=self.credentials_pub)
else:
self._publisher = pubsub_v1.PublisherClient()
return self.credentials_pub
return self._publisher

@staticmethod
def is_valid_envelope(msg: dict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def publisher(self):
self._publisher = pubsub_v1.PublisherClient(credentials=self.credentials_pub)
else:
self._publisher = pubsub_v1.PublisherClient()
return self.credentials_pub
return self._publisher

@staticmethod
def is_valid_envelope(msg: dict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def publisher(self):
self._publisher = pubsub_v1.PublisherClient(credentials=self.credentials_pub)
else:
self._publisher = pubsub_v1.PublisherClient()
return self.credentials_pub
return self._publisher

@staticmethod
def is_valid_envelope(msg: dict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def publisher(self):
self._publisher = pubsub_v1.PublisherClient(credentials=self.credentials_pub)
else:
self._publisher = pubsub_v1.PublisherClient()
return self.credentials_pub
return self._publisher

@staticmethod
def is_valid_envelope(msg: dict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def publisher(self):
self._publisher = pubsub_v1.PublisherClient(credentials=self.credentials_pub)
else:
self._publisher = pubsub_v1.PublisherClient()
return self.credentials_pub
return self._publisher

@staticmethod
def is_valid_envelope(msg: dict):
Expand Down

0 comments on commit 364e817

Please sign in to comment.