Skip to content

contest: retry when unable to load input files - #90

Open
matttbe wants to merge 2 commits into
linux-netdev:mainfrom
matttbe:contest-retry-empty
Open

contest: retry when unable to load input files#90
matttbe wants to merge 2 commits into
linux-netdev:mainfrom
matttbe:contest-retry-empty

Conversation

@matttbe

@matttbe matttbe commented Aug 20, 2026

Copy link
Copy Markdown
Member

The contest service was unable to load the 'branch_info' input file twice yesterday. Probably because it was being updated:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Catch the error, and retry max 4 more times with the same delay.

The contest service was unable to load the 'branch_info' input file
twice yesterday. Probably because it was being updated:

  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Catch the error, and retry later.

Signed-off-by: Matthieu Baerts <matttbe@kernel.org>
Just to be able to see that there is something wrong going on.

After this arbitrary limit, the service will crash, and this will be
more visible than letting the service retrying over and over without
actually updating Patchwork.

The limit is set to 4, which should correspond to 5 minutes before
reporting an error with these files if they stay corrupted for some
reasons.

Signed-off-by: Matthieu Baerts <matttbe@kernel.org>
@matttbe
matttbe requested a review from kuba-moo August 20, 2026 10:30
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.

1 participant