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

Fix condition in process_and_store_resolution #40

Merged
merged 3 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ def mapper_resolution_beat_producer():
.scalars()
.all()
)

for mapper_resolution_batch_status in mapper_resolution_batch_statuses:
_logger.info(
f"{mapper_resolution_batch_status.resolution_attempts} / {_config.mapper_resolve_attempts} attempts done"
)

_logger.info(
f"Sending mapper_resolution_worker task for mapper_resolution_batch_id: {mapper_resolution_batch_status.mapper_resolution_batch_id}"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ def process_and_store_resolution(
f"Processing the response for beneficiary: {single_response.id}"
)
disbursement_id = beneficiary_disbursement_map.get(single_response.id)
if disbursement_id and (
single_response.fa != "" or single_response.fa is not None
):
if disbursement_id and single_response.fa:
_logger.info(
f"Resolved the request for beneficiary: {single_response.id}"
)
Expand Down
Loading