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] - local tuple syntax #3297

Merged
merged 7 commits into from
Nov 7, 2024
Merged
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
5 changes: 3 additions & 2 deletions services/core-api/app/api/verifiable_credentials/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,12 @@ def process_all_untp_map_for_orgbook():
return [record for payload, record in records]


@celery.task()
def forward_all_pending_untp_vc_to_orgbook():
"""STUB for celery job to publis all pending vc to orgbook."""
## CORE signs and structures the credential, the publisher just validates and forwards it.
records_to_forward = PermitAmendmentOrgBookPublish.find_all_unpublished(unsafe=True)
ORGBOOK_W3C_CRED_FORWARD = f"{Config.ORGBOOK_CREDENTIAL_BASE_URL}/forward"
ORGBOOK_W3C_CRED_FORWARD = f"{Config.ORGBOOK_PUBLISHER_BASE_URL}/credentials/forward"

task_logger.warning(f"going to publish {len(records_to_forward)} records to orgbook")

Expand Down Expand Up @@ -321,7 +322,7 @@ def push_untp_map_data_to_publisher():
)
else:
success_count += success_count + 1
failed_credentials.append(publish_record.unsigned_payload_hash, publish_record.error_msg)
failed_credentials.append((publish_record.unsigned_payload_hash, publish_record.error_msg))

return f"num published={success_count}, num failed = {len(failed_credentials)}"

Expand Down
Loading