Skip to content

Stop generating a fresh JWT for each polling request when signing, and poll with exponential backoff #3572

@diox

Description

@diox

Currently, web-ext sign polls AMO API every second for validation and approval results and each of these requests generates a fresh JWT.

JWT for AMO API have a max expiration time of 5 minutes, and are now documented as being reusable. web-ext should take advantage of this and:

  • Re-use the JWT generated at the beginning of the submission process for a few minutes (let's say up to 15 seconds before expiration date to give some leeway)
  • Use exponential backoff to avoid polling that much both at validation and approval.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions