Skip to content

Commit

Permalink
21332 Dissolutions job - Update filer config (bcgov#2793)
Browse files Browse the repository at this point in the history
* Add unit tests

* Fix unit tests

* Update config for involuntary dissolutions job

* Fix typos

* Fix accidental makefile change
  • Loading branch information
leodube-aot authored Jun 28, 2024
1 parent e58ba1a commit 2685686
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion colin-api/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install --upgrade pip ;\
Expand Down
2 changes: 1 addition & 1 deletion data-reset-tool/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down
2 changes: 1 addition & 1 deletion data-tool/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
test -f venv/bin/activate || python3.11 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install --upgrade pip ;\
Expand Down
2 changes: 1 addition & 1 deletion jobs/email-reminder/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down
2 changes: 1 addition & 1 deletion jobs/filings-notebook-report/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ build-req: clean ## Upgrade requirements
pip install -Ur requirements/prod.txt ;\
pip freeze | sort > requirements.txt ;\

install: clean ## Install python virtrual environment
install: clean ## Install python virtual environment
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==21.1.2 ;\
Expand Down
2 changes: 1 addition & 1 deletion jobs/furnishings/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down
2 changes: 1 addition & 1 deletion jobs/future-effective-filings/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down
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
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
3 changes: 3 additions & 0 deletions jobs/involuntary-dissolutions/involuntary_dissolutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ async def put_filing_on_queue(filing_id: int, app: Flask, qsm: QueueService):
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}'
)


def mark_eligible_batches_completed():
Expand Down
2 changes: 1 addition & 1 deletion jobs/sftp-gazette/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ build-req: clean ## Upgrade requirements
pip install -Ur requirements/prod.txt ;\
pip freeze | sort > requirements.txt ;\

install: clean ## Install python virtrual environment
install: clean ## Install python virtual environment
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==21.1.2 ;\
Expand Down
2 changes: 1 addition & 1 deletion jobs/sftp-icbc-report/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ build-req: clean ## Upgrade requirements
pip install -Ur requirements/prod.txt ;\
pip freeze | sort > requirements.txt ;\

install: clean ## Install python virtrual environment
install: clean ## Install python virtual environment
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==21.1.2 ;\
Expand Down
2 changes: 1 addition & 1 deletion jobs/sftp-nuans-report/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ build-req: clean ## Upgrade requirements
pip install -Ur requirements/prod.txt ;\
pip freeze | sort > requirements.txt ;\

install: clean ## Install python virtrual environment
install: clean ## Install python virtual environment
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==21.1.2 ;\
Expand Down
2 changes: 1 addition & 1 deletion jobs/update-colin-filings/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install --upgrade pip ;\
Expand Down
2 changes: 1 addition & 1 deletion jobs/update-legal-filings/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down
2 changes: 1 addition & 1 deletion legal-api/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
test -f venv/bin/activate || python3 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install --upgrade pip ;\
Expand Down
2 changes: 1 addition & 1 deletion queue_services/business-pay/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
test -f venv/bin/activate || python3 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down
2 changes: 1 addition & 1 deletion queue_services/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down
2 changes: 1 addition & 1 deletion queue_services/entity-bn/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
test -f venv/bin/activate || python3 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install --upgrade pip ;\
Expand Down
2 changes: 1 addition & 1 deletion queue_services/entity-digital-credentials/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install upgrade pip ;\
Expand Down
2 changes: 1 addition & 1 deletion queue_services/entity-emailer/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down
2 changes: 1 addition & 1 deletion queue_services/entity-pay/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
test -f venv/bin/activate || python3.8 -m venv $(CURRENT_ABS_DIR)/venv ;\
. venv/bin/activate ;\
pip install pip==20.1.1 ;\
Expand Down

0 comments on commit 2685686

Please sign in to comment.