kingdonb / stats-tracker-ghcr

Tracking GHCR download counts for FluxCD
0 stars 0 forks source link

Measure can fail to retrieve packages_count #27

Closed kingdonb closed 1 year ago

kingdonb commented 1 year ago
measure.1 | ########### fresh packages count: 16 (expecting ) #######

In the output, this indicates the substitution failed, of the nature:

"(expecting #{gho.package_count})"

This can happen when a GithubOrg record is retrieved before it is ready. Since we don't implement status or conditions on the "Project" resource yet, we can't wait for "ready" so we need a stop-gap solution until that option would be available.