Skip to content

batch processing w/ exponential backoff#79

Merged
bdehamer merged 1 commit intomainfrom
bdehamer/exponential-backoff
Jun 3, 2024
Merged

batch processing w/ exponential backoff#79
bdehamer merged 1 commit intomainfrom
bdehamer/exponential-backoff

Conversation

@bdehamer
Copy link
Collaborator

Introduces a new hard limit of 2500 subjects which can be attested with a single invocation of the action.

Subjects are processed in batches of 50 with an exponential delay added after the initial batch is processed:

  • Batch 2: 7.5 seconds (150ms per attestation)
  • Batch 3: 15 seconds (300ms per attestation)
  • Batch 4: 30 seconds (600ms per attestation)
  • Batches 5-50: 60 seconds (1200ms per attestation)

@bdehamer bdehamer requested a review from a team as a code owner May 31, 2024 23:16
Signed-off-by: Brian DeHamer <bdehamer@github.com>
@bdehamer bdehamer force-pushed the bdehamer/exponential-backoff branch from f1da07f to bfa87ff Compare May 31, 2024 23:37
Copy link
Contributor

@kommendorkapten kommendorkapten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bdehamer bdehamer merged commit 9e752e3 into main Jun 3, 2024
@bdehamer bdehamer deleted the bdehamer/exponential-backoff branch June 3, 2024 14:56
@carlocab
Copy link

carlocab commented Jun 3, 2024

Thanks! Would be great if this could be pushed downstream to https://github.com/actions/attest-build-provenance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants