bcgov / von-bc-registries-agent-configurations

Build and Deployment Configurations for the Indy-Catalyst version of the BC Registries Agent
Apache License 2.0
0 stars 7 forks source link

Update getCredentialPostRate function to provide more detail #72

Closed WadeBarnes closed 1 year ago

WadeBarnes commented 1 year ago

This PR updates the getCredentialPostRate function to provide additional detail.

Example of the previous output:

$ ./manage -e test getcredentialpostrate

Loading settings ...
Loading settings from /c/Users/wade/git-repos/von-bc-registries-agent-configurations/openshift/settings.sh ...

Credentials are being posted at an average rate of:
  - 25 per second, or
  - 1491 per minute
  - Over the period of 26h:51m:7s

Example of the enhanced output:

$ ./manage -e test getcredentialpostrate

Loading settings ...
Loading settings from /c/Users/wade/git-repos/von-bc-registries-agent-configurations/openshift/settings.sh ...

Credentials are being posted at an average rate of:
  - 25 per second, or
  - 1491 per minute
  - Over the period of 26h:51m:7s

  - Estimating 11h:22m:40s to process the remaining 1,017,790 credentials

Credential Summary:

 total_credentials | unprocessed | processed | posted  |  held   | errors
-------------------+-------------+-----------+---------+---------+--------
           5239218 |     1017790 |   4221428 | 2632198 | 1589043 |    187