Skip to content
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

21332 Dissolutions job - Update filer config #2793

Merged
merged 5 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jobs/involuntary-dissolutions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ build-req: clean ## Upgrade requirements
cat requirements/bcregistry-libraries.txt >> requirements.txt ;\
pip install -Ur requirements/bcregistry-libraries.txt

install: clean ## Install python virtrual environment
install: clean ## Install python virtual environment
argush3 marked this conversation as resolved.
Show resolved Hide resolved
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down
1 change: 1 addition & 0 deletions jobs/involuntary-dissolutions/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class _Config(object): # pylint: disable=too-few-public-methods
NATS_SERVERS = os.getenv('NATS_SERVERS', None)
NATS_CLUSTER_ID = os.getenv('NATS_CLUSTER_ID', None)
NATS_CLIENT_NAME = os.getenv('NATS_CLIENT_NAME', None)
NATS_FILER_SUBJECT = os.getenv('NATS_FILER_SUBJECT', 'entity.filer')
NATS_ENTITY_EVENTS_SUBJECT = os.getenv('NATS_ENTITY_EVENTS_SUBJECT', 'entity.events')

SECRET_KEY = 'a secret'
Expand Down
6 changes: 2 additions & 4 deletions jobs/involuntary-dissolutions/involuntary_dissolutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from legal_api.services.flags import Flags
from legal_api.services.involuntary_dissolution import InvoluntaryDissolutionService
from legal_api.services.queue import QueueService
from sentry_sdk import capture_message
from sentry_sdk.integrations.logging import LoggingIntegration
from sqlalchemy import Date, cast, func
from sqlalchemy.orm import aliased
Expand Down Expand Up @@ -119,9 +118,8 @@ async def put_filing_on_queue(filing_id: int, app: Flask, qsm: QueueService):
await qsm.publish_json_to_subject(payload, subject)
except Exception as err: # pylint: disable=broad-except # noqa F841;
# mark any failure for human review
capture_message(
f'Queue Error: Failed to place filing {filing_id} on Queue with error:{err}',
level='error'
app.logger.error(
f'Queue Error: Failed to place filing {filing_id} on Queue with error:{err}'
argush3 marked this conversation as resolved.
Show resolved Hide resolved
)


Expand Down
Loading