Skip to content

Retry job status query once before showing error on Google Play packaging status page#6132

Merged
kendzisah10 merged 3 commits into
mainfrom
copilot/fix-google-play-package-error
Jul 21, 2026
Merged

Retry job status query once before showing error on Google Play packaging status page#6132
kendzisah10 merged 3 commits into
mainfrom
copilot/fix-google-play-package-error

Conversation

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Transient network/server errors when polling for a Google Play packaging job immediately surfaced as a hard failure to the user. The fix adds a single automatic retry after 10 seconds before showing the error message.

Changes

  • google-play-packaging-status.ts
    • Added pollQueryRetryDelayMs = 10000 constant for the retry delay
    • Added pollQueryErrorCount to track consecutive query failures
    • On first query error: silently wait 10 s and retry instead of immediately failing
    • On second consecutive error: show the error as before
    • Reset pollQueryErrorCount to 0 on any successful query so mid-session transient errors don't permanently count against future polls
} catch (error) {
    if (this.pollQueryErrorCount < 1) {
        // First failure: wait 10 seconds and try again before showing the error.
        this.pollQueryErrorCount++;
        setTimeout(() => this.pollJob(jobId), this.pollQueryRetryDelayMs);
    } else {
        this.pollJobFailed(jobId, error);
    }
    return;
}

@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thanks @Copilot for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

Copilot AI linked an issue Jul 14, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix error handling on Google Play package creation Retry job status query once before showing error on Google Play packaging status page Jul 14, 2026
Copilot AI requested a review from JudahGabriel July 14, 2026 17:07
@JudahGabriel
JudahGabriel marked this pull request as ready for review July 16, 2026 05:29
@kendzisah10
kendzisah10 added this pull request to the merge queue Jul 21, 2026
Merged via the queue into main with commit abb4e94 Jul 21, 2026
5 checks passed
@kendzisah10
kendzisah10 deleted the copilot/fix-google-play-package-error branch July 21, 2026 20:08
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.

Error creating Google Play package

3 participants